Forums

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

Best process to update Custom Fields based on another Custom Field

Gaurav Gupta December 7, 2018

We have a scenario, where a Project has the below Hierarchy:

Business Unit --> Product Family --> Project

The user select the project for which they open the issue. We want to update the parent and grandparent (Product Family & Business Unit) fields automatically, based on this user input.

We are exploring options for this and would like to get the views from the experts here as to what is the best (and least expensive :)) way to achieve this.

6 answers

1 vote
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.
December 7, 2018

You are going to need some code to do the calculation and set the field.  You can easily do this with Scriptrunner or an equivalent.

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.
December 8, 2018

No, you need to add code to do it.

0 votes
Gaurav Gupta December 7, 2018

Thanks Nic. Is there any way of achieving this without a plugin?

0 votes
kavi shree
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.
December 7, 2018

Hi @Gaurav Gupta

 

My suggestion would be using Easy links for jira along with some calculated fields if required.

https://marketplace.atlassian.com/apps/1216498/easy-links-for-jira?hosting=server&tab=overview

 

Cheers

0 votes
Gaurav Gupta December 7, 2018

Hi Red,

I do not want to copy the value from 1 Field to another. We need to set the value for 2 fields based on a third field. For example:

User Selects Project as Project 1

Then Product Family needs to be set to P1 and Business Unit to B1

or if 

User Selects Project as Project A

Then Product Family needs to be set to P2 and Business Unit to B2

 

Thanks

Gaurav

0 votes
Olga Videc
Community Champion
December 7, 2018

Hello Gustav, 

My suggestion Jira Suite Utilities (JSU) 

Edit workflow:

Transition : created -> open -> add post function -> Copy Value From Other Field (JSU) 

Copy Value From Other Field (JSU) : 

Copies the value of one field to another, either within the same issue or between two related issues (as issue link, Parent/Sub-Task or Epic/issues in Epic).

Suggest an answer

Log in or Sign up to answer