Forum Discussion
can you post some screenshots of your script and your error logs?
- nisgupta4 years agoValued Contributor
I have attached the screenshot for the scripts. and also error screenshot.
Let me know if you have any questions
-Nishchal
- hkim54 years agoStaff
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);
- nisgupta4 years agoValued Contributor
Thank you for Updates.
First of all Yes we have to jira instances- one is jiratest.texastech.edu and othe one is jira.texastech.edu. One is test environment and other one is PROD environment. Both the environments has ITA project keys.
I was trying with different Project Keys . We do have Project Keys SSS, ITA. Do you want me to submit the script and logs again ?
Ok I will update the priority one. Let me update the priority code and will send you screenshot
-Nishchal