Restrict ability to add specific tags to certain users

Answered

Hi, I'm trying to create a workflow that restricts adding of specific tags (that should be publicly accessible) to specific users, but I'm struggling.

I'm trying to create a workflow that does this:

  • Triggers when tags are updated (ideally when a specific tag, like "cto-approved" is added)
  • Checks whether the loggedInUser belong to a group (such as "CTO") and asserts that the tag can only be added if they belong to that group.

My non-functional workflow is below.

0
1 comment
Official comment

Orrin, please try to compare the name of the tag with the string, like this: 

if (issue.tags.added.last.name == "cto-approved")

Please sign in to leave a comment.