Hi, I wont to update all fields on linked issue during transition. Data for update i wont to get from parrent issue. How i can do it with script runner?
Hello,
You should add a post-function like this:
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.Issuedef parentIssue = issue.getParentObject()
issue.getParentObject
After that you can begin to copy values of the fields from the parentIssue variable to the issue variable. The code would depend on your requirements. After that you have to update the issue.
It could be done with less code in Power Scripts.
It looks like you're new here. Sign in or register to get started.