Forums

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

Scriptrunner Listener for Test Case Executions

Emily Huang
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 24, 2019

I have Scriptrunner and Test Management for Jira. I'd like to write a script that will transition an Issue from "In Progress" to "In Test" when a Test Execution is created/run for that Issue's Test Case. What kind of scriptrunner event should I be listening for in this scenario? 

1 answer

0 votes
PD Sheehan
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 5, 2019

Test Management doesn't generate any events yet. So there is nothing to listen to.

I had a discussion about that with them at Summit and I think it's on their roadmap.

The best workaround I can think of is to create a service script that runs on a cron interval that will perform a sql select query to return the list of test execution for issues that are in progress, then you could kick off a transition on those issues. But that would be some complex coding... not the easy stuff you'll find in the scriptrunner listener built-in scripts.

Suggest an answer

Log in or Sign up to answer