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,298,258
Community Members
 
Community Events
165
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

0 votes
Answer accepted

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,836 views 37 48
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you