We have Jira Service Management on Data Center and Opsgenie. I've figured out how to create an incident in Opsgenie and get the Incident ID back from Opsgenie using ScriptRunner and the Opsgenie REST API. What I need to do from here I'm a little lost, how do you create a link to the incident in Opsgenie on the JSM incident?
I know how to create links to Confluence pages using the RemoteIssueLinkBuilder, but there isn't an application type for Opsgenie....
Figured this out with some help from KD at Adapativst. I was looking for a special link type to write the code to, when in actuality this information is stored in new custom field called Linked major incidents, which returns/accepts an array.
Here's an example of the code I was able to use to update the field:
def linkedMajorIncidents = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectsByName("Linked major incidents")
ComponentAccessor.getIssueManager().updateIssue(issue.reporter, issue, EventDispatchOption.DO_NOT_DISPATCH, false)
Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events