Forum Discussion
This might be a stupid question, but it looks like you have two different JIRA server instances, where one is jira.<ur company>.edu and the other is jiratest.<ur company>.edu
Is it possible that a JIRA project with the project key of ITA only exists within one jira instance and not the other?
It also looks like from your script, you're calling on the jiratest.<urcomp>.edu and that you are specifying the jira project with key SSS. Why is that not reflected in your logs?
When you call on your jiratest module, is it possible you didnt save your script and that it was using a hardcoded ITA project key value that doesnt exist in your second "jiratest.texastech.edu" environment?
----
And lastly, the only error that I see in your script is in the funciton IssuetoJira() (forgive me I am not too familiar with javascript" is your jiraData.setField("priority", "major") . Priority is a field that requires a json input, so you'd need to use the setFieldJSON method instead where
var priorityJSON = '{"name":"major"}';
var jiraData = Jira.CreateNewIssueData("SSS", "Bug").
//rest of your info here....
//reporter, assignee, summary all using teh setField() method
// and then this
setFieldJSON("priority", priorityJSON);
we do have project key in Jira as well as shown in the attached screenshot.
- nisgupta4 years agoValued Contributor
are there any other functions that we can use to check why project key is not available ?
- sonya_m4 years agoSmartBear Alumni (Retired)
Hi nisgupta! It looks like your code should be correct. These leaves us with two options - either the error is caused by an unsupported version of Jira server or data center, or this might be a bug. The best next step would be contacting support and getting a solution from them.
Please share the results with us when you have them!