Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hello,
We have a connection between Jira (on-premise) and Service-Now.
Outgoing code for service-now:
Incoming Jira code:
In Service-Now we have 2 ways of getting to the “Closed (resolved)” state. One transition is called “Closed”, and the other one is called “Ready to Close”. After both, the state of the service-now ticket reaches “Closed (resolved)”, the difference beeing some different mandatory fields being filled in before doing the transition, and triggering a checkbox after the action, or not.
When we do the “Closed” transition in service-now, the Jira ticket gets transitioned to “Done/Resolved”.
When we do the “Ready to Close” transition in service-now, the Jira ticket does NOT get transitioned, although the comment is left as expected with the previous and current status. There are no errors, but it just does not happen.
Please let me know if you need any additional details from our side.
Thank you!
Hi,
You may review the documentation below and check the incoming rules.
https://docs.idalko.com/exalate/x/jgF1Aw
Feel free to contact e back if you have any further question.
Thanks.
Hey, Harold Oconitrillo , what happens if you remove the mapping from the script:
Note the
part
Regards, Serhiy.
And another question: isn't
supposed to have an
?
Regards, Serhiy.
Hi Serhiy Onyshchenko ,
Thank you for your reply!
I removed the status mapping, so the script is now:
def remoteStatusName = replica.state
The same happens, it only works for one transition, but not for the other. The comment still gets added, but the "issue.setStatus("Done/Resolved") part does not get set.
The second "issue.setStatus" in the 'else' clause is not needed, because we only want to change the status of the Jira issue if the service now one is "Closed (resolved)", not if it is still active or pending other info.
Please let me know if you have any suggestions.
Thank you!
Mihai