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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.