In the post JMWE function of creating a new issue, how to define a field based on the value of another field? The fields and their values are different, for example, if "field A" has the value 22 then set "field B" to "New York". Each field has more than 20 values.
JIRA Cloud.
Hi Bruno,
you can add the field you want to set under the "Set fields of new issue" section, and then select, for that field, the "Set field value to:" option, and in the Value use a template that will return the desired calculated value. To map the values of one field to the desired values of the target field, a good approach is to use a "map":
{{ {
"22": "New York",
"23": "Dallas"
}[issue.fields.A.value] }}
(assuming field A is a single-select type custom field)
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.