I am attempting to use automation to ADD a dynamic Label derived from two custom fields.
- I want to apply a label that is a concatenation of a string and two custom fields' values like:
- "string-{{cf1_Value}}-{{cf2_Value}}"
- the idea is that cf1 and cf2 will change over the life of the issue
- cf1 is a string (from a dropdown) and cf2 is a number
- when certain conditions are met, I want to apply a label to "capture" that the issue achieved that particular status
The automation currently is attempting to do the folllowing:
- When: Issue updated
- IF:matches
- cf1_Value = "someString"
- Then: transition the issue to paused
- And: Edit issue fields
- cf2_Value = {{#increment}}{{issue.cf2_Value}}{{/}}
- Labels =
- (ADD) "string1", "string2-{{issue.cf1_Value}}-{{issue.cf2_Value}}"*
- (REMOVE) [none]
*Note:
- I can't replicate the exact syntax here
- "string1" in the label update is a static string/label
- the second label, "string-{{cf1_Value}}-{{cf2_Value}}", is the dynamically derived label just in case my syntax is not clear.
- I've also attempted to use
- json/more options via the "Edit issue fields" - for example:
{
"update": {
"labels": [{
"add": "string1"
},
{
"add": "string2-{{issue.cf1_Value}}-{{issue.cf2_Value}}"
}]
},
}
The cf1_Value is the display name of the custom field vs. the ID (cf#####) format.
I feel like one of these options should enable this operation but so far, I've not been able to crack the nut. Anyone have a solution for this challenge? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.