Forums

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

JMWE transition only component lead

Jurica Petricevic
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 28, 2020

Hello,

I have one question.

I would like to limit one transition so that only the component lead can make it. I would like to use the JMWE tool for this. Can anyone here help me?

Only the manager of one selected component should be able to make a certain transition.

 

 

2 answers

1 accepted

3 votes
Answer accepted
David Fischer
Community Champion
October 28, 2020

You can indeed use a Scripted (Groovy) Condition with this script:

issue.get("components")?.any{
it.componentLead == currentUser
}

 

Jurica Petricevic
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 28, 2020

Thank you very much. Great solution.

1 vote
Marco Brundel
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 28, 2020

Hi @Jurica Petricevic ,

I do not have JMWE directly at my Jira, but i have JSU.

For me it works with:
JQL Condition (JSU)
JQL Expression: component in componentsLeadByUser ()

With JMWE you can create a condition with Groovy Script and maybe you can use this JQL in a Groovy script.

Anyone additions?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events