Hello All,
I am using below script to change parent issues transition when linked issue transition changes.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.MutableIssue
if( issue.getIssueType().getName().equals("Story"))
{
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
issueLinkManager.getOutwardLinks(issue.getId()).each {
issueLink ->
MutableIssue linkIssue = issueLink.getDestinationObject() as MutableIssue
log.info(linkIssue.getIssueType())
log.info(linkIssue.getIssueType().getName())
log.info(linkIssue.key)
linkIssue.setStatusId("10306")
linkIssue.store()
}
}
I want to change the Parent and linked issues transition based on sub-task transition.
For Example:
If Feature has 2 Sub-tasks and 3 stories linked to it. When sub-task status changed to In-Progress, parent and linked Statuses should also change to In-Progress status.
Thanks in advance,
Mani
Hi Leo,
Thanks for the response.
The script runner links which you shared is describing only sub-task and parent transitions. But i want move parent and linked issue status automatically when sub-task transition changes.
I have also tried with JSU linked issue transition post function. However, when the sub-task transition changes only parent issue transition is changing but not linked issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well it's not a surprise. at a time you can make a single post function
for your requirement, you'll have to add 2 post functions in a single transition
1. function to transition parent based on sub-task
2. function to transition linked issues based on story/parent
Make sure order is right(sub-task should be top of linked function if they share a common workflow)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.