Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×
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 %}
Hi @David Fischer ,
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
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.