I have a custom field 'Branch' on my Bug screen. I want to manually trigger an automation rule from a Bug item. The automation rule runs a JQL and finds all Bugs where the Branch field matches with the Branch field of the Bug item from where the automation was triggered.
I have tried the following options but nothing worked:
Branch = {{triggerIssue.Branch}}
Branch = {{triggerIssue.customfield_Branch}}
Branch = {{triggerIssue.customfield_Branch.value}}
Any help is appreciated. Thanks in advance.
You need to use customfield id (customfield_<your_id>) or customfield name instead triggerIssue.customfield_Branch.value. It should be: triggerIssue.Branch.value or triggerIssue.customfield_<your_id>.value
triggerIssue.Branch.value did not work.
Not sure how to get the id of the custom field in order to try triggerIssue.customfield_<your_id>.value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Abhijeet Panganti -- Welcome to the Atlassian Community!
Please use this how-to article to find the correct smart value (or custom field id) for a field: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Also note that smart values are name, spacing, and case-sensitive. And so the exact one must be used or it will evaluate to null and not work as expected.
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.
Thanks a lot, @Bill Sheboy
The how-to article you shared really helped in getting good insights into the subject and led me to reach the solution.
I had a few more custom fields on which I had to apply conditions and the structure of each varied.
https://<yourinstanceurl>/rest/api/2/issue/<issuekey>?expand=names
With the help of the above URL mentioned in the article, I could view the structure of each of the elements and accordingly used them in my JQL which finally worked to my requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To use the custom field in a JQL for an automation rule, try this format:
Branch = "{{triggerIssue.fields.customfield XXXXX}}"
Replace XXXXX
with the actual custom field ID of the "Branch" field. You can find the custom field ID by navigating to Custom Fields in Jira and locating "Branch."
This should allow you to match the Branch
menuland field of the trigger issue in the automation.
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.
Hi Abhijeet,
To find the Custom Field ID:
1.Go to Custom Fields
2.Select the desire field
3.Click Edit Details
Then you can find the field ID in the URL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot, @Cristian0791 for sharing the way of identifying the custom field id. It helped me move forward in my requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.