All,
I'm trying to map Priority and a custom field based on the value in Priority through JIRA automation, need help on mapping a select list.
Field1: Priority (Single select with values P0,P1,P2,P3)
Field2: Dept Custom field (Single select with values A,B,C,D)
___________________Mapping______________
If Priority value is set to: P0 then Set the Dept value to : A
If Priority value is set to: P1 then Set the Dept value to : B
If Priority value is set to: P2 then Set the Dept value to : C
If Priority value is set to: P3 then Set the Dept value to : D
Any input on the JSON script to map the above would be appriciated.
You can do this by simply using the if/else condition, no need to create a JSON script to map it. The if/else would look something like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no need to create a JSON script to map it
What if I want to use a dictionary to create a mapping ? I have a similar situation but with a hundred of different values, it would be much easier for me to maintain de dictionary rather than add a bunch of "ifs".
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.