Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,468
Community Members
 
Community Events
184
Community Groups

Recognize internal comment in Automation for JIRA

Deleted user May 15, 2018

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?

2 answers

1 accepted

3 votes
Answer accepted
Deleted user May 15, 2018

{{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.

Thanks @[deleted] 

Thanks @[deleted] worked like a charm !

Where can we find these regex property values? Hoping to find more like this for other tasks.

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.

0 votes
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 20, 2023

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.
image.png 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events