Forums

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

How to create automation according to table of value

Noa Tsruya
Contributor
February 11, 2024

Hi

I have 4 fields which define the priority of the issue. the fields are single choice type with text value. 

I would like to define a automation that fill new fields with similar meaning, but the values will be numbers.

for example - if the user set the value of Safety field to be "Trivial" so the new safety field will be "1" automatically.

 

How can I do that?

 

image.png

3 answers

1 vote
Fabio Racobaldo _Herzum_
Community Champion
February 11, 2024

Hi @Noa Tsruya ,

if you requirement is to prefill that field based on other field value you should setup a behaviour provided by https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?tab=overview&hosting=cloud

Hope this helps,

Fabio

0 votes
Bill Sheboy
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.
February 12, 2024

Hi @Noa Tsruya 

If you do not have the additional marketplace apps noted in the other responses, you can set the priority value using an automation rule, using conditions, lookup tables, or a combination of these.

Note you will need two rules: one triggered on issue created (to set an initial value) and another triggered on any changes to the fields (including any tampering with the calculated Priority value).

I recommend trying to create your rule for a basic scenario, and incrementally add to it, testing as you proceed.  To get you started on creating your rule, please refer to these documentation and example sources:

 

If you run into challenges with your rule, please post images of your complete rule, the action details, and the audit log details, and explain what is not working as you expected.  Those will provide context for the community to offer suggestions.

 

Kind regards,
Bill

0 votes
Kristian Walker _Adaptavist_
Community Champion
February 12, 2024

Hi Noa,

I can confirm the best way to achieve your requirement will be to use Behaviours for Jira Cloud.

You will then be abel to configure a Behaviour script that fires on channge and sets field values when another field or group of fields changes to a specific value.

I can cofnirm we have some examples here ,here and here which show how to set field values when a field changes, that will be a good reference guide to help you to write the script that you require.

I hope this information helps.

Regards,

Kristian

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