Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Gating and Ticket Transitions with Jenkins and JSM

andrew_pass
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 26, 2022

Hi,

Just looking for some assistance on JSM, we're setting up gating with Jenkins

https://support.atlassian.com/jira-service-management-cloud/docs/use-deployment-gating-with-jenkins/

We have the gate working, and it creates a change request successfully in JSM and the gate works, we're trying to figure out how best to then close off the newly created change in JSM. 

Is there a variable we can use in our JenkinsFile to use later in the file? I can see the newly created change ticket in the pipeline but can't see a way to pass this to then fire an API call to transition that ticket?

Many thanks,

Andy

1 answer

0 votes
andrew_pass
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2022

Figured this out, was actually via the automation rules.

I'd assumed that the deployment info sending back to JSM worked in the same way as it does for JIRA so in that you can see the ticket has been deployed and the info via the REST API as well.

It seems to send the info behind the scenes though and isn't visible on the ticket but the automation rules and stuff all picked up the deployment so thumbs up!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events