Forums

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

Is it true that post function "fast track transition" can only be executed by (project)administrator

Sandra Meessen
Contributor
March 27, 2018

Hello,

Is it true that the workflow post function "fast track transition" only can be executed by users who either have jira administrator rights or project administrator rights? Is there anyway to change this? I'm using Jira software v7.1.10 and I'm not an experienced scriptrunner programmer. Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Adrián Plaza [DEISER]
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.
March 27, 2018

Hi @Sandra Meessen,

 

In the bottom of the configuration fast-track transition you have this options:

Screenshot_2.png

Whit this options you can Skip what you want.

 

But you need to be JIRA Administrator to configure a Fast-Track transition.


Cheers,

Adrián.

Sandra Meessen
Contributor
March 27, 2018

Hello Adrián, thank you for your quick response. Yes, I am Jira administrator and I can configure and setup the fast-track transition, but the problem we are facing is in handling the issues who use the fast-track transition. It is only executed in case the current user has either jira administrator rights or project administrator rights. For them the fast-track transition works, for all other users it doesn't. And I am absolutely sure we didn't put any criteria in the workflow that says it may only be done by administrators. 

Is this regular functionality in Jira or are we missing something? 

Adrián Plaza [DEISER]
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.
March 27, 2018

Hi @Sandra Meessen,

 

If you are JIRA Administrator, then you can put in the condition field when you are configuring a Fast-Track transition something like this:

import com.atlassian.jira.component.ComponentAccessor

def groupManager = ComponentAccessor.getGroupManager()
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

if (groupManager.isUserInGroup(currentUser, "jira-administrators") && isUserMemberOfRole('Administrators')) {
return true
}

return false

 

Can you try this?

Cheers,
Adrián.

Sandra Meessen
Contributor
March 27, 2018

Hello Adrián, Thank you! That did the trick! Thanks for the help.

Sandra Meessen
Contributor
April 17, 2018

Hello Adrián, I'm still facing a problem with the fast track and specific with these transition options: Screenshot_2.png

In our Jira test environment I have checked all three boxes and they keep checked! And everything I want works like a charm! Happy with that?

In our Jira production environment I have checked all three boxes, but when I open the transition again, the checks are gone! And the disappeance of these 3 checks are causing me the problem that in test everything works like I want and in production it doesn't. Is that a known Jira bug? What can be the difference between test and production that my checks disappear? I have jira admin rights on both environments. Thank you.

Adrián Plaza [DEISER]
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 17, 2018

Hi @Sandra Meessen,

 

What version of the plugins you have in both environments?


Cheers,
Adrián.

Sandra Meessen
Contributor
April 24, 2018

Hello Adrián, I'm sorry for my question (lack of experience), but which plugins are we talking about?

Adrián Plaza [DEISER]
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 24, 2018

Hi @Sandra Meessen,

 

I'm talking about ScriptRunner.

 

Cheers,

Adrián.

Sandra Meessen
Contributor
April 24, 2018

Hello Adrián, That's an interesting point at the moment. We have Scriptrunner upgraded to 5.1.6 in our testenvironment and we still have version 4.3.13 in our production environment. I'm doing the upgrade there this evening. So, maybe I can tell more tomorrow. Thanks for the tip and give you follow up after our upgrade this evening. 

Adrián Plaza [DEISER]
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 24, 2018

Hi @Sandra Meessen,


Thanks for the upgrade, I hope all works fine tomorrow.

 

Cheers,

Adrián.

Akbar N January 11, 2019

Hi @Adrián Plaza [DEISER]

I have similar question where i want to use the Fast Track transition.  

1. We have this following workflow statuses. 

Funnel > Approval >  Groom > Done. There is one other status which is Denied. 

2. In the Approval Step above, we have transition screen which holds a custom field with 'Agree' or 'Disagree' as dropdown values. 

3. If user select Agree, then the transition needs to be like Funnel > Approval > Groom > Done otherwise it should be Funnel > Approval > Denied as the end of the flow. 

Now in the scriptRunner, i have created the fast-track transition by mentioning condition as below and action as 'Denied'. 

cfValues['AppSatus']?.value == 'Disagree' 

But i don't see anything happens when i'm into the Transition screen after a new issues is created in the Approval step. Even after selecting 'Disagress' as custom field value, the issues is moved to the next status like Groom but not Denied. 

 

Any idea what i'm missing here? Kindly suggest. 

Suggest an answer

Log in or Sign up to answer