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: 

Hide transition from user but allow automation to execute it.

Kaviraj
Contributor
January 7, 2020

How to hide a workflow transition from user but also allow automation to run it.

Ex:  Done --> Resolved

User should endup with Done status, after that automation should check the condition and then change to Resolved. User should not allow to see Resolved status.

I have tried Workflow Condition & Validation to achieve it, but no luck.

Any suggestion.

 

Thanks,

 

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

11 votes
Answer accepted
Yoni Az
Contributor
November 1, 2022

@Jeffrey Bistrong Thank you for that solution. One improvement: you can select `atlassian-addons-project-access` under "users in project role". That targets automation for Jira directly instead of needing to use a permisson.

Ícaro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2023

Thanks for this tip! It worked perfectly.

5 votes
Jeffrey Bistrong
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 Champions.
August 14, 2020

I think I found a solution for this. 

 

I am using the "Permission" condition on the workflow action. I put the automation for jira user in the "sprint-admin" permission which is the least used permission (only a few people have this permission)

Add Condition To Transition - JIRA 2020-08-14 11-30-28.png

Project Customer Reporting - Project Permissions - JIRA 2020-08-14 11-31-31.png

1 vote
Petr Papousek
Contributor
January 8, 2020

What exactly do you mean by "no luck" ? :-) what exactly did you try a and what exactly was the result?

What automation were you doing? Did you try Triggers? I guess they should do exactly what you need, as thay ignore conditions, as can be seen on screen
(Edit workflow > edit transition > Triggers)image.png

To hide Transition, use the Conditions tab on the same screen

rajey
March 17, 2020

Hi,
I'm trying to do a similar thing.
I want to hide a transition for an issue if it has a sub task (the transitions are automated through a script). 
I tried the following (added it as condition to a workflow transition)

Boolean passesCondition = true;
if (!issue.isSubTask() && !issue.getSubTaskObjects().isEmpty()) {
passesCondition = false;
}

passesCondition

It blocks the transition from the user, however it also blocks my scripts (as the condition is false, my post function script doesn't execute).
Is there a way to only hide the transition UI elements for the user?

Link to my question.

Like RND JIRA Administrators likes this
TAGS
AUG Leaders

Atlassian Community Events