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

Skript to create a linked Test Result for each fixVersion entered in requirement ticket Edited

Daniel Leichtfried Aug 09, 2018


I need assistance with Scriptrunner for Jira.

I'm trying to get a skript done to create a linked Test Result to each fixVersion entered in Requirement.

What's the best solution for this, i'm thinking of creating a ecalation service to check every 10 min, if there is a new fixVersion added on requirements in Project "xx", then for each requirement seach for linked issues if all fixVersions are contained in Test Results and those fixversions missing create a new Test Result for each fixVersion

I appreciate your help.

1 answer

0 votes
Daniel Leichtfried Aug 10, 2018 • edited

my progress so far:

i made a query to get all the issues 

In Escalation Service:

///Requ.(status == IN PROGRESS) ... search for all Requ
///JQL in Escalation Service///----------------------------------///
project = "01005" AND issuetype = Requirement AND status = "In Progress"


///Skript/// --------------------------------------///
#get all fixVersions from currentissue and copy to 'fixversionslist'

#get linked issues of currentissue

#for(linked issues.each()){

#if(issuetype('Test result')){

#for(fixVersion out of 'fixversionslist'){

#if(it.fixVersion not in it.issue) {

#create linked issue.type('Test result') to currentissue && add it.fixVersion


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

175 views 2 7
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