Hello All,
I have JIRA custom field (Ecosystem) where values are available in Dropdown menu. Which needs to be updated according to Ecosystem values present in JIRA description field. I,e If description field having Ecosystem: Google. The Custom field should have updated as "Google".
I am using below steps to get this update. However its not working:
1. Variable Name: Ecosystem
2. Smart Value:{{issue.description.match("Ecosystem:\\s*([^\\n]+)").toString().trim()}}
Hi @Arvind
First thing: What is the source of your created work items? Having a person (or system) provide the Ecosystem directly in the field may be less error-prone than trying to parse it.
But if you still need to parse, what is an example of a complete Description you expect? It appears you expect the Ecosystem indicator to perhaps be on the same line or lines below the "field label".
Next, the Work Item Created trigger has a known racetrack timing problem which can start the rule before all data is available. This could cause your condition and field parsing to not work as expected. The workaround for this is to always add the Re-fetch Work Item Data action immediately after that trigger. This will slow the rule slightly, reloading the data before the steps proceed.
Next, back to the syntax you show for the parsing...
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 @Arvind
Thanks for the question.
Why do you not doing it via a simple condition for description?Am I right that,for example, Google value is available in the Ecosystem field. If yes, you can try the following, via If/Else blocks.
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.