Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scripted (Groovy) Condition for "projectlead"-Option

Hi Community!

 

Is it possible to put a "projectlead"-option as a condition for one transition on the workflow?

 

I think I've seen something like this somewhere before like Scripted (Groovy) Condition.

 

Thanks in advance.

 

Best regards

3 answers

Hi @Jurica Petricevic - Scripted (Groovy) Condition comes with JMWE plugin. You can use a simple workflow condition with Scripted (Groovy) Condition.

projectLead='Jurica'

Yes @Niranjan , but that workflow is shared true multiple projects and I try to make one standard for all those projects. It is necessary that in each new open project Projektlead can initiate certain transitions.

 

Do you understand what I mean?

 

Thanks for the reply.

Hi @Jurica Petricevic ,

You can use this Scripted (Groovy) Condition-

issue.getProjectObject().getLead().equals(currentUser)

Hi @Jurica Petricevic ,

Do you mean the transition must be visible to only the project lead of that project?

Thanks,

Anjali

Hi @Jurica Petricevic ,

If you want a transition to be available only for the project lead, then you can achieve your requirement using JMWE.

Add a "Scripted (Groovy) Condition (JMWE app)" condition on the transition and add the below Groovy script : 

currentUser == issue.projectObject?.projectLead

 Hope this helps!

Regards,

Suprija

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

84 views 0 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you