Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I sync issue status from JIRA to another application?

Alex
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 31, 2023

Hi,

I have my custom application and I want when I move issue in JIRA from one status to another (transition) to notify my application somehow. Is this possible and if yes - how?

For example is there some place to create events that do API calls to my application, or  would it be possible through custom "Atlassian app" that I can build like those in the marketplace - https://marketplace.atlassian.com/ and then install that app in my JIRA.

The alternative is to make a task/cronjob in my application that every minute does REST API call to JIRA and see what is the current situation to the issues and enter those changes to my database, but I would prefer the first option if it's possible.

Thanks

3 answers

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 31, 2023

You could, of course, develop a Jira app that would intercept issue status changes and "notify" your external application, it would be super-flexible, but it is the most work.

Two approaches to implement it super-fast:

  1. With Automation for Jira, you can create an automation rule which is triggered by status changes and use an automation action that sends the web request to an external URL which your external handles. Easy, super-fast and will be maintained by Atlassian.
  2. With ScriptRunner you can write a short Groovy script that will be executed at issue transitions. In the script, similar to the previous, you can send a request to an external URL. It is nearly the same idea, but in this case you can write the automation in Groovy, instead of using the Lego blocks provided by AFJ. 
  3. (There are other apps to implement automations, but these two are the most popular options.) 
0 votes
Syed Majid Hassan -Exalate-
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.
August 27, 2023

Hi Alex,

Welcome to the community. This is Majid @ Exalate. 

The choice really depends on how deep an integration you are looking for and the resources available to you. Building a custom integration might look to be as simple as establishing webhooks and a series of API calls, but there is a lot of other factors like queue management and conflict resolution that also come into it. 

Hope it helps. 

Thanks

Majid

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.
June 2, 2023

Hi @Alex

What you are looking to do is possible through Stitch It, a new standalone tool from the ScriptRunner team that is built to allow you to create custom integrations between applications.

For your specific use case, you can create a connection to Jira easily using the Managed Connector feature, and a connection to your custom tool using a Generic Connector.

Once you have those connectors, you can create a workspace that uses Event Listeners to listen for issue updates from your specific Jira instance, and then write a script that filters out all updates other than status updates and pushes the status update data to your custom tool through its Rest API.

Stitch It is currently in Beta, which means for now it is free to use. You can create an account and access it here:

Stitch It

and watch a short video on how to use the tool here.

Any questions please ask!

Suggest an answer

Log in or Sign up to answer