It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

1 accepted

0 votes
Answer accepted
Nic Brough Community Leader May 31, 2017

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...

Nic Brough Community Leader May 31, 2017

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.

thanks a lot Nic!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,097 views 7 0
Join discussion

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