You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have 2 fields, LOB(User) and New LOB.
How do I do it, when I select the value "Wholesale Banking" or "Wholesale Funding" from the LOB(User) field, the value of the New LOB field will automatically change to "LOB Wholesale Banking Group"
if LOB User = Commersial Banking Supply Chain, set New LOB = LOB Wholesale Banking Group
can anyone provide an example query?
you need to use a Set Issue Fields post-function, select the New LOB field as the field to set, and for the value use something like this:
{%- switch issue.fields.customfield_12703.value -%}
{%- case "Commersial Banking Supply Chain" -%}
LOB Wholesale Banking Group
{%- endswitch -%}
Notice the "{%-" and "-%}" that are "absorbing" whitespace created by the newlines. Without them, you'd need to write this:
{% switch issue.fields.customfield_12703.value %}{% case "Commersial Banking Supply Chain" %}LOB Wholesale Banking Group{% endswitch %}
thank you for the answer.
is it like this ?
"customfield_12703" is the LOB User field
but when I tried it, I didn't get any results
is there something wrong with my settings? :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it depends on a few things. First of all, the values (both the case value and the resulting value) are case-sensitive and space-sensitive. You also need to make sure there is no trailing space in the values of the New LOB 2023 field.
Then, is customfield_12703 a single-select custom field? When you "test" the value in the editor against an issue that has the "Wholesale Banking" value, do you get "LOB Wholesale Banking Group"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, it depends on a few things. First of all, the values (both the case value and the resulting value) are case-sensitive and space-sensitive. You also need to make sure there is no trailing space in the values of the New LOB 2023 field.
>> I think this is the cause
Now it works :)
Thank you so much @David Fischer _Appfire_
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this query,
{% switch issue.fields.customfield_12703.value %}
{% case "Commersial Banking Supply Chain" %}
LOB Wholesale Banking Group
{% endswitch %}
is there something wrong with the query?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.