Forum Discussion

jimpson's avatar
jimpson
Contributor
11 years ago

Invalid Issue Type - JIRA Submission

Has anyone else using JIRA run into this error:



Invalid issue type specified: 1
  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    Hi Joshua, the error you are receiving appears to be that of an Exception returned by the JIRA Web Service.

     


    A quick look at the Script Extension source shows Test Complete hard codes the Issue Type to 1, i.e. Bug:


     


    remoteIssue.type        = "1";//it's a bug


     


    The error received indicates this Issue Type does not exist. To check for this, follow the following steps:


     


    1. Log into JIRA in a Browser.


    2. Open a new tab in the Browser and enter the following: URL http://jira/rest/api/2/issuetype/1


    3. Press Enter, the Browser should display the following if the Issue Type exists


     


    {"self":"http://jira/rest/api/2/issuetype/1","id":"1","description":"A problem which impairs or prevents the functions of the product.","iconUrl":"http://jira/images/icons/issuetypes/bug.png","name":"Bug","subtask":false}


     


    or the following if it does not:


     


    {"errorMessages":["The issue type with id '4444' does not exist"],"errors":{}}


     


    To get all defined Issue Types, use this URL: http://jira/rest/api/2/issuetype


     


    Regards,


    Phil Baird

  • vtournel's avatar
    vtournel
    New Contributor
    What a beautifull line  ;)



    But where can i find that line ?



  • It's in the Atlassian_JIRA_ReportBug.js file in the JiraSupport script extension:



    C:\Program Files (x86)\SmartBear\TestComplete 10\Bin\Extensions\ScriptExtensions\JiraSupport.tcx

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    To add to Joseph's reply: 'JiraSupport.tcx' file is an ordinary .zip archive with changed extension. So you can unpack it using any archiver, make required changes and pack again.

    See Script Extensions help section for more additional information.
  • vtournel's avatar
    vtournel
    New Contributor
    Hi,

     

        Could you please tell us how to change the issue type. I Have the same issue and i would like to change the issue type value.



        All the best,



    Vivien TOURNEL
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Vivien,

     


    From Phil's reply:


    remoteIssue.type        = "1";//it's a bug


     


    it looks like this is the line where you can change the issue type.