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: 

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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?

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events