Workflow condition: reporter belongs to X group

Hi !

 

This is my first question in the community!

I need to add a workflow condition: reporter belongs to X group.

Colud you please help me?

 

1 answer

0 vote

You'll need some code to do that as I read it.

You can do "current user is the reporter and the current user is in group X" off-the-shelf. 

But I think you're asking for "Check that the reporter of the issue, Chuck, is in group X, when Dave is trying to perform the transition", which is not an option you have.

I'd use the script runner for this, as usual, but there are other add-ons that support scripted conditions, and probably one that could provide exactly that condition.

Thanks, we have already scriptrunner, is it easy to implement? Any quickly idea? I'm not a coder...

It should be.  I'm not a proper coder either, but I think you'll want something that can get the list of users in a group, and check if the issue.reporter is in the list.

I would say check for groups in issue.reporter.getGroups(), but there is easy getGroups() function and no way to directly read a user and say "what groups are they in" as far as I can make out.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published 4 hours ago in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

235 views 3 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you