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
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

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