The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add "If" condition on Workflow

Berat Altunhan
Contributor
May 31, 2024

Helle everyone, 

People in group "X" can move through all the statuses in the workflow. At the same time, assignee can only move this issue to "Resolve" and cannot see any other status. But the assignee can also belong to group "X". And when this happens, since he is the assignee, we want him to see only the "resolve" status.

Can I do this with condition via workflow or should we not do it using automation?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Maciej Dudziak _Forgappify_
Atlassian Partner
May 31, 2024

Hi @Berat Altunhan

If I understand correctly, what you need is to hide all transitions except "Resolve" for assignee. Or is it more complicated? Are you in company-managed project?

Berat Altunhan
Contributor
May 31, 2024

Actually I can realize what you say, but when the assignee belongs to group "X" it can display other statuses except "Resolve".

In short;

1."X" group should make all status transitions
2. Assignee should only be able to transition to Resolve status,
3. If the assignee belongs to group "X", it should only see the "Resolve" step since it is still the assignee.

Maciej Dudziak _Forgappify_
Atlassian Partner
May 31, 2024

I don't think it's possible ootb. However with Jira expression-based condition you could write following:

user.groups.includes('X') && issue.assignee.accountId != user.accountId

So for all transitions you would need to add above condition, status would be visible only if a user is in group X and is not the assignee.

Is it something you are looking for? 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events