Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you set a field to change the value depending on another field?

Yousaf
Contributor
November 7, 2018

Hello together,

I would like to set a field value that would change in another field depending on what was set in the first one..

Here´s an example:

Field 1 - Date of return: 10.04.2018

Field 2 - Date of debit: 24.04.2018

As you can see the value of field 2 was set automatically by adding 14 days to the value of field 1.

Is this possible? If yes, please explain how.

Thanks and best regards

3 answers

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

You'll need to find a scripting or automation App that can support calculating one field from others.  I'd use Scriptrunner of course (as I work for the vendor, I've got expert scripters on tap), but have a look at the automation and other scripting Apps too.

Yousaf
Contributor
November 7, 2018

Hi @Nic Brough -Adaptavist-,

 

well I have JWT and JMWE installed here. I tried functions like "Set a field as a function of other fields" (JWT) but that did not work out.

But I could not really figure out what to set in the rules or the conditional execution.

Like Lenin Raj likes this
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.
November 7, 2018

I'm not sure how to do it with either of those, I rarely use them.  I suspect it should be possible, but I've not tried.

Like Lenin Raj likes this
0 votes
Grigory Salnikov
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.
November 7, 2018

Hi @Yousaf,

Yes, it's possible with the following plug-in:

Jira Misc Custom Fields

There's a calculated date field and you'll be able to calculate date depending on another one.

It takes some time to get yourself familiar with the code used to calculate a new date, but there's nothing outstanding.

Should you encounter any difficulties calculating a new value, please, don't hesitate to come back here.

Grigory Salnikov
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.
November 7, 2018

As @Nic Brough -Adaptavist- has fairly said, this is, of course, not the only one App which can help you. There're a number of them. 

Suggest an answer

Log in or Sign up to answer