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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I am trying to see if the comment added (it is also a trigger) is a public or internal one. I have found the smart values like
{{issue.comments.last.body}}
{{comment.internal}}
but I am not sure where should they be compared, and I am pretty sure the true or false would not equal the result of last or last.body.
Does anyone know the best smart values or other way to do this?
{{comment.properties."sd.public.comment".internal}}
equals
false (or true)
is how I managed to resolve it
How is this supposed to work? What "sd.public.comment" means? I've tried this but doesn't work. Tks.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where can we find these regex property values? Hoping to find more like this for other tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are looking for what regEx you can utilize you can check out Pattern (Java Platform SE 7 ) (oracle.com)
If you want to know what fields Jira exposes you can start here What are smart values? | Cloud automation Cloud | Atlassian Support
I find it easier to just test against an actual issue with the JSON exposed at:
https://YOURNAME.atlassian.net/rest/api/2/issue/ISSUEKEY?expand=names
replace the values in bold with your own.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A quick note - on Server/DC 9.4.1 I just tested it with:
{{comment.internal}}
I had a simple rule with "when comment created" and I use advanced compare condition to match that to true or false and it worked correctly.
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.