Forum Discussion
- Philip_BairdCommunity ExpertHi 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 - vtournelNew ContributorWhat a beautifull line ;)
But where can i find that line ? - joseph_michaudModeratorIt'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 - AlexKarasChampion Level 3To 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. - vtournelNew ContributorHi,
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 - TanyaYatskovskaSmartBear 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.
Related Content
- 2 years ago
- 6 years ago
- 9 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago