Add default value based on a custom field in Jira Service Desk.(Server)

Rajaravikiran S August 18, 2020

We want to add default value to certain custom fields based on the value of a dropdown field.
I checked with Behaviour. We can add the same in Initialisers. But the problem is it populates default values once the create screen is loaded but not based on the value of a custom field.

Kindly suggest an approach or alternative.

2 answers

0 votes
Matthew Clark
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 31, 2020

Hi Rajaravikiran

If you want a Behaviour to set another field to a certain value when a given select list is changed then you need to add a Field level script on the select list inside your behaviour configuration.

i.e. you have to choose the select list field in the behaviours and attach a script to it.

You can control the value of a text field based on the value of a select list with a script like the one shown here in the Adaptavist Script library

 

Regards

Matthew

0 votes
Florian
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 18, 2020

Try automation for Jira. It should do it.  

Rajaravikiran S August 19, 2020

Hi Florian.
Could you please explain this a bit as to how we can set default value as well as if the user modifies the default value , the modified value should not be overriden as the automation or behaviour will run each time and that can override the modified value.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events