Forums

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

How to hide a transition after executed once.

Rafal_Poplawski October 25, 2019

I have transition which go from A to A ( A -> A). This transition generate some Attachments and I don't want people to be able to generate them more than one time. Is there any way besides creating a custom field and manipulating it, to do this? Because these solution is ugly for long maintenance. 

  

2 answers

0 votes
Avinash Bhagawati {Appfire}
Community Champion
October 25, 2019

Hi @Rafal_Poplawski ,

Welcome to Atlassian Community !

You will be able to configure this with the help of Condition for the transition and the condition is provided by JSU automation Suites for Workflows.

Please follow below steps for configurations and condition is working for your requirement.

1. Edit the workflow and select the target transition and add Condition called JQL Condition

jsu 01.png

2. Add Below JQL statement and select to compare the value to 0.

key = {issue.key} AND status changed TO "A"

jsu 02.png

3. Publish the workflow.

 

So basically this condition checks that whether issue is changed to status A previously or not. If it is not changed then it allows transition or if it is changed then transition will be hidden.

Hope this will help you.

Thanks,

Avinash 

Rafal_Poplawski October 28, 2019

Hi @Avinash Bhagawati {Appfire}  It would be great, but i don't have this condition in my conditions list. Conditions.PNGDo i have to do something, to have this condition?

Avinash Bhagawati {Appfire}
Community Champion
October 28, 2019

Hi @Rafal_Poplawski ,

You need to have latest version of JSU Automation Suite for Jira Workflows for Jira app. From screenshot it looks like you are using old version of app , can you please update JSU Automation Suite for Jira workflows above 2.15.0.

The JQL condition is present app version higher than 2.15.0.

To update app please follow the steps mentioned here.

Thanks,

Avinash

Yulia Ploshevsky November 15, 2020

Hey @Avinash Bhagawati {Appfire} 

 

I tried your solution, but the workflow is still visible

The transition doesn't lead to any status in my case

0 votes
Ilya Turov
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.
October 25, 2019

I guess if you can say from the attachment's name/format that it was automatically generated, you can check for it in a condition (scriptrunner is able to do it, for example, and other script plugins might be as well)

Suggest an answer

Log in or Sign up to answer