Update linked issue fields

Pumper1 January 4, 2018

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?

1 answer

0 votes
Alexey Matveev
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 Leaders.
January 4, 2018

Hello,

You should add a post-function like this:


import com.atlassian.jira.component.ComponentAccessor

import com.atlassian.jira.issue.Issue

def parentIssue = 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.

Suggest an answer

Log in or Sign up to answer