You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
I have a custom field Time Frame that has several values (Today, Tomorrow, Next Week).
I would like to add a JIRA comment when conditions are met where the Time Frame value is part of the comment.
How do I refer to it?
All my attempts failed.
Thanks
Hi @Dd
There are at least two ways to check the content of a field to perform the behavior you ask:
Use text and conditional functions to extract / test the value, and then add your field. Please look here to learn about those: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/ and https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/
Use rule if / else conditions to check the value, with your two processing paths. Please look here to learn about those: https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/
Kind regards,
Bill
What I'm looking for is what to write when referring to a custom field with a space in the name, in my case 'Time Frame".
For example, if I want to print out the summary of a ticket I use: {{issue.fields.summary}}
What do I use for the filed Time Frame?
I tried both {{issue.fields."Time Frame"}} and {{issue.fields.Time Frame}}
Neither worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying!
Smart values are name, spacing, and case-sensitive. And, they often are not exactly the same as the displayed name on the page for the field. When the incorrect smart value is used in a rule, if often fails with no error and instead just returns null.
To learn the correct smart value for a field, please use the how-to article linked below. Essentially you identify an example issue with your field, call a REST API function with a browser tab, and search for your field on the page with Control-F. This will also show the custom field id for it, as that works in some cases where the smart value, name does not.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome!
Worked like charm (though for some reason I had to use version 3 and not version 2
Thanks
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.