Forums

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

Jira automation rule when pull request is merged

Datpmt July 30, 2023

Hello, our team wants to integrate JIRA and github and start to use automation.

Our repository has the following git flow strategy.

I have some tickets to deal with within a week

- ticket1

- ticket2

- ticket3

when I merge them to the branch `develop`, the status Jira of them changes from `in-progress` to `development`. 

Now I want to merge branch `develop` to branch `staging` for testing those tickets.

I want those tickets to change their status in Jira from `development` to `testing`.

After all, tickets are tested successfully they are manually changed status to `ready-to-deploy`

And after that, I want to merge branch `staging` to branch `production` and I want those tickets to change their status in Jira from `ready-to-deploy` to `done`.

Can you give me some suggestions, thanks!

2 answers

1 accepted

1 vote
Answer accepted
Jens Schumacher - Released_so
Community Champion
July 31, 2023

Hi @Datpmt 


Jira automation provides a number of events that can be used to automatically transition issues in response to an event. I think with those events you should be able to get pretty close to what you are describing. 


Screenshot 2023-07-31 at 8.53.20 pm.png

If not, your last resort would be to use the Webhook event. 

Cheers,
Jens


Datpmt August 1, 2023

Thank you for your help

Datpmt January 3, 2024

@Jens Schumacher - Released_so webhook, the best choice!

0 votes
Bobby Bailey
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.
July 31, 2023

Hi @Datpmt 

It is possible to create complicated and custom integrations between Jira and Github using Stitch It, the new integration tool from the people behind ScriptRunner. 

You can use the managed connections feature to create connections to both Jira and Github that Stitch It will then handle. 

Once you have created the connections, you can create a workspace, that can then be configured to listen to events from Github. When those events are detected, you can execute scripts that access the Jira REST API using the Managed API feature to update Jira however you need to based upon your logic. 

Stitch It is currently free as it is in open beta, so no barrier to entry.

Does this help?

Datpmt August 1, 2023

thank you very much!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events