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,558,920
Community Members
 
Community Events
184
Community Groups

How do I bulk update all comments on a given ticket? Possibly using smart values?

I need to grant access to old core tickets, and need the comments on those tickets not to be visible to the new users.

I have set up issue security, and know that comments can be individually updated to a specific visibility using that, but with sometimes over 100 comments per ticket that's not viable. 

I've tried the "Edit comment" automation action, which states that you can update a comment's visibility while preserving its content if you leave the text box blank, however the only options for doing this are to edit the first, last, or trigger comment, so that will only edit 1 at a time.

The final option is to edit the comment based on smart value, which I have tried but this results in either an error saving the rule or an error in the audit log saying "Error editing comment - smart-value did not resolve into a number." - this error was shown when using the smart value {{#issue.comments}}{{/}}

Is there a way of selecting all available comments on an issue, or is there another way to update all comments' security?

1 answer

1 accepted

1 vote
Answer accepted
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 06, 2022

hhmm interesting question... It's a bit tricky but you can use an

  1. "Advanced branching" branch with {{issue.comments}} with a variable name thisComment
  2. Edit comment action, pick smart value and {{thisComment.id}} this will let you edit all of the comments of an issue

Screen Shot 2022-06-06 at 9.15.34 pm.png

I had a quick play and this seems to work! Good luck!

Thank you for this! I'm getting a separate error when running the automation, which I have run past Atlassian support directly. Once that is resolved I will try this approach and let you know.

Hi Mark,

 

With that error fixed this has worked perfectly, thank you.

Hi Mark,

Great solution for this. Was looking for something like this and your solution fulfilled my requirement as well.

And thanks Catherine for the original question.

Thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events