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

Daniel Leichtfried August 9, 2018

Hello,

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 August 10, 2018

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"

///User///----------------------------------///
tooladmin

///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
TAGS
AUG Leaders

Atlassian Community Events