Forums

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

Fast-track transition an issue doesn't work when the transition is hidden

Deleted user April 21, 2016

Hi

So I've set up a script listener which transitions the issue to "In Progress" when it gets assigned. This transition should not be visible as a workflow button for the user as it should only run automatically.

When I hide the transition with the according condition, the listener doesn't transition the issue anymore. After removing the condition, it works again.

Any ideas?

Thanks for any help.

 

1 answer

0 votes
Mark McCormack (Adaptavist)
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.
April 21, 2016

Hi Marius,

Have you made the Script Listener JQL Fast-track transition and the hidden condition mutually exclusive or is there some overlap that prevents it from working?

Deleted user April 21, 2016

Workflow

WF2.PNGWF3.PNGWF.PNG

Listener

LI.PNG

Hello Mark

What do you mean exactly by mutually exclusive? I thought maybe there is a permission issue but I'm not too sure about it since it works when the button is visible.

I've attached a few screenshots of my workflow and the listener. Maybe I'm not using the hidden condition correctly?

Mark McCormack (Adaptavist)
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.
April 21, 2016

Marius,

What workflow condition are you using? Are you using the "Hide transition from user"?

What does your Script Listener look like?

Deleted user April 21, 2016

Yes I'm using the "Hide transition from user" condition.

I've posted a screenshot of my listener above. Can you see it?

It looks like this:

Note: Change status to "In Progress" when issue is assigned for the first time

Projekt key: All projects

Events: Issue Assigned

Condition: none

Action: Vorgang zuweisen (121)

Additional issue actions: none

Jozef Kotlár
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.
April 21, 2016

AFAIK, there are two conditions with similar name. The Hide transition from user is built-in in JIRA and returns false. There is similar condition Hide transition from JMWE that investigates call stack to recognize context.

The former could be used only in JIRA Automation Add-on, where the conditions/validations could be switched off when transitioning.

As I remember there is not such functionality in Scriptrunner. Correct me, if I am wrong.

Mark McCormack (Adaptavist)
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.
April 21, 2016

Marius,

Jozef is right, in that the current version of ScriptRunner does not offer the ability to skip conditions, validators or permissions. I'm told this change would be relatively simple, so we should have it in our backlog. In the meantime, you could use the JIRA automation add-on.

JamieA
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.
April 21, 2016
Deleted user April 21, 2016

Okay smile Thanks for your help.

Mark McCormack (Adaptavist)
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.
April 21, 2016

Hi Marius,

Please feel free to watch & vote on the issue Jamie refers to (SRJIRA-1081) which is in our backlog.

We'll try to get to it just as soon as we can.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events