Customfield update.

tirupam1479 June 10, 2021

Hi Team,

how to update a custom field automatically based on criteria whenever the user modifies the other custom field.

please help me with this.

 

Thanks,

Tirupam

2 answers

0 votes
Hyrum Steffensen _Appfire_
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.
June 10, 2021

Hello Tirupam.

As Poojaa points out, you can populate the value of a custom field based on the value of another by using a scripting solution found on the Atlassian Marketplace.

To do this in Power Scripts, see this documentation on "Update The Value of a Custom Field Based on Another" using Live Fields (a Power Scripts feature that allows you to customize Jira UI in Jira Server or Data Center).

Live Fields typically has two scripts--a main script and a hook script. Here is an example main script:


lfInstantHook("issueType", "hook.sil");

lfWatch("issueType", "issueType", "hook.sil");

Here is an example hook script:

if (argv["issueType"] == "Feature") {    
    lfSet("textField", "This issue is a Feature");
} else if (argv["issueType"] == "Story") {    
    lfSet("textField", "This issue is a Story");
}

For more information on configuring Live Fields, see this documentation.

You may need to open the documentation in incognito mode or log out because of Atlassian security features.

Regards,

Hyrum

A note of disclosure, I am a product engineer for Power Scripts and work for Anova Apps, an Appfire Company.

0 votes
Poojaa Sudhakaran June 10, 2021

Hello Tirupam,

This can be achieved using add-ons like Automation for Jira or ScriptRunner. I don't think it can be achieved using out-of-the-box Jira functionalities.

Regards,

Poojaa

Suggest an answer

Log in or Sign up to answer