It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to run a custom script when a status change occurs?

I have written a custom script that will take the URL from a JIRA issue, run a lighthouse test and based on the scores send it back or let it move forward. I want to automate this process so that when a developer changes the issue status from "In Development" to "QA Ready", my custom script can run. Is this possible? 

1 answer

0 votes

What is the "custom script" and how are you trying to inject it into the process?

The custom script is one to run a lighthouse analysis on a website. The script itself works when I use the Rest API to pull information from a Jira ticket manually, but I want to figure out how to inject it into the process so that it runs each time a certain status change occurs. 

Ok, I get "lighthouse analysis", but there's nothing on how the script runs, what triggers it, or what it updates outside Jira.

However, at a guess, I'd say you want "stuff that script does runs as part of a transition in Jira"?  There's a range of things you could do here. 

If your script is working perfectly, then, as an engineer (we believe in what works in real life, not on paper or in ivory towers), the most simple thing to do is create a post-function that says "run script on an OS level (probably with parameters from Jira?)"

The other end of the scale would be to write a plugin (or get a plugin that enables scripting) and move your code into Jira.  It'll run faster than an external call and it will be easier to deal with errors, but you'll need to spend some time to do it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

221 views 4 12
Read article

Community Events

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

Events near you