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

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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? 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events