Forums

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

How to change a custom field from one project to another

Orly Dahan
Contributor
August 8, 2020

I have 2 projects which have linked between them (related to link) Project A and Project B.

I would like to create the following scenario:

Once the status field is updated in project A, a custom field will be updated automatically in project B.

I don't want to use the Global Automation, I would like to use script runner listener.

Can you please advise how can i do that? what should i select and what code do i need to add?  

1 answer

0 votes
Nic Brough -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 Leaders.
August 8, 2020

I think this is close to what you need : https://library.adaptavist.com/entity/calculate-custom-field-on-issue-update

You'll need to modify it to read the links and work out what issue to update instead of the current one, but there's some code for working with links in https://library.adaptavist.com/entity/add-or-update-the-issue-link-for-an-issue-in-jira that might help you with that.

Orly Dahan
Contributor
August 8, 2020

Thank you!

I can see that the second link you have added describes how to create a linked issue, but I need to update a field in an existing linked issue.

FYI I don't have any experience with script listener and I need a full guide of how and what to write in:

1. If the following condition evaluates to true

2. Code to run

Like pearl.fernandes likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events