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
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
Hi @Jurica Petricevic ,
Do you mean the transition must be visible to only the project lead of that project?
Thanks,
Anjali
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jurica Petricevic - Scripted (Groovy) Condition comes with JMWE plugin. You can use a simple workflow condition with Scripted (Groovy) Condition.
projectLead='Jurica'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jurica Petricevic ,
You can use this Scripted (Groovy) Condition-
issue.getProjectObject().getLead().equals(currentUser)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.