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?
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.
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.
This was great - exactly what i needed. on my end, needed the "does not equal", but most importantly needed to know the path {{comment.internal}}. thx @Filipi Lima !
worked as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.