Forums

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

Is there any way to copy a field value from one issue to another?

Jason Liu
Contributor
June 27, 2022

Hi, we have 2 issues, B is cloned by A. We have scriptrunner listener to make the workflow status change automation. Now we want to know if we could make field value change automation happen. For example, if the story point of B is changed, A's story point will be changed automatically. If there're more than one way, please tell me all. Thank you.

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Champion
June 27, 2022

Hi @Jason Liu ,

you can do that through your listener.

You need to catch ISSUE UPDATED event and, based on the link "is cloned by" retrieve the linked issue and update fields through https://docs.atlassian.com/software/jira/docs/api/8.22.1/com/atlassian/jira/bc/issue/IssueService.html#update-com.atlassian.jira.user.ApplicationUser-com.atlassian.jira.bc.issue.IssueService.UpdateValidationResult-

Hope this helps,

Fabio

Jason Liu
Contributor
June 27, 2022

Hi Fabio, will this set specific field? If I want to clone only one field value, is that OK?

Fabio Racobaldo _Herzum_
Community Champion
June 27, 2022

That method update the whole issue based on the parameters passed into the ValidationResult (https://docs.atlassian.com/software/jira/docs/api/8.22.1/com/atlassian/jira/bc/issue/IssueService.UpdateValidationResult.html)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.2
TAGS
AUG Leaders

Atlassian Community Events