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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Automation for JIRA with condition comment.visibility.value

I am trying to use below IF condition with Automation for JIRA  plugin but it's not working.

Can anyone correct me ?. I am commenting on ticket with visibility set as Administrator

I tried below without luck




1 answer

1 accepted

0 votes
Answer accepted
Tessa Tuteleers Community Leader May 11, 2022

Hi @Ifteqar Ahmed , 

could you give a little more context? 

What is the trigger? How is your if configured? Show us a printscreen of possible at all. 

- Tessa

I am trying to copy comment to another ticket from a source ticket.

PI am able to print sample string but conditional printing is not working.

If condition is not able to return true/false output

My full Comment on issue rule is below


{{#if(equals(comment.visibility.value, "Administrators"))}}
TEST----> {{}}


Tessa Tuteleers Community Leader May 11, 2022

Hi @Ifteqar Ahmed , 

I'm not sure I get how you configured your rule, can you show a (redacted) screenshot? 

In any case, the "comment.visibility.value" ONLY works if your rule is triggered with "comment added". With any other trigger, automation does not know which comment you mean so you will have to specify (last probably). 

If you trigger is a comment, this is how it works: 

(you can see I added log lines as well as actions to see what my smart values return, always a good way to debug).

Screenshot 2022-05-11 at 15.01.05.png

Screenshot 2022-05-11 at 15.01.11.png


Please let me know if you need any more help! 

- Tessa

Like Ifteqar Ahmed likes this

Hi @Ifteqar Ahmed 

Yes, Tessa's ideas:

The visibility information is only available with the smart values from the comment-related triggers.  However it does appear the visibility information is available from the REST API functions for issues in case you want to try that route with a web request.

Kind regards,

Like Tessa Tuteleers likes this

Thanks @Tessa Tuteleers @Bill Sheboy , You solution has helped me to achieve our requirements.

Added compare condition and solved the issue.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events