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.
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
#}}}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.