The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

add epic link status

jjgalea
Contributor
October 31, 2016

Hi,

I created the script below to set the status of an issue to To Do' only is the custom value is set as 'No'

issue.issueType.name == 'Story' & cfValues['Isolated']?.value == 'No'

Is it possible to add, if the epic link status is 'To Do?'

Cheers,
Jason 

image2016-10-31 11:47:33.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Thanos Batagiannis _Adaptavist_
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 Champions.
November 4, 2016

Hi,

you get check the inward links and check for a soecific one (in your case the Epic-Story Link) with a script like

import com.atlassian.jira.component.ComponentAccessor

def flag = false
ComponentAccessor.getIssueLinkManager().getInwardLinks(issue.id)?.each { it ->
    if (it.issueLinkType.name == "Epic-Story Link" && it.getSourceObject().status.name == "To Do" ) {
            flag = true    
    }
}

regards, Thanos