-
Type:
Suggestion
-
Resolution: Low Engagement
-
Component/s: Rule - Smart Values
Issue Summary
The split (string operator) smart value function does not work with the development smart value function (ie, pullRequest.destinationBranch )
Steps to Reproduce
- Create an automation rule with an edit issue action, selecting a custom field.
- On the edit issue field function, update a field via the Advanced field editing using json.
- Use the following smart value
{{pullRequest.destinationBranch.split("/").get(1)}}

- Nothing is captured and updated.
Expected Results
The formatted development smart value (ie, {{pullRequest.destinationBranch.split("/").get(1)}}) should return a value.{}
Actual Results
The formatted development smart value (ie, {{pullRequest.destinationBranch.split("/").get(1)}}) does not return a value. **
Workaround
To circumvent this issue, you will have to setup the following in your automation;
- Create a variable
- Pass the value of the Development smart to this variable
- Create another variable
- Pass the value of the 1st variable with split function formatting
- Use the second variable in the Issue edit field function