How Do I Set A Transition Condition To Be Executed By the Project Lead?

Every Project has a 'Project Lead' assigned. But 'Project Lead' doesn't appear in the Roles Browser, and in the Workflow Designer, when setting a Transition Condition, I cannot select a Project Role of Project Lead to execute the transition. How can I set such a Condition for the Project Lead to execute the transition?

4 answers

1 accepted

This widget could not be displayed.

It's not a "role", it's a dynamic setting, like assignee or reporter.

You'll need to write or script a condition to use it directly. Or, hang the condition off a permission (like "can administer project") and then make sure the project lead has that permission.

In the Add Condition to Transition screen, there are options for: Only Assigned Condition, and Only Reporter Condition, but nothing like Only Project Lead Condition. I find that odd, since Assignee and Reporter are just like Project Lead - dynamic settings, as you say.

I see the 'Permission Condition' option too, and I can make that work per your suggestion; although not exactly what I was after, since other Project roles also have the Administer Project permission, who I don't necessarily want to execute this specific transition.

I've seen code for a "only project lead" condition, but my memory fails me on where I saw it!

It is mildly annoying, but I've a habit of granting project lead administrate rights and then using that. Not ideal if you want a tighter definition of what a project lead does. Another trick might be to grant a "useless" permission if you have one - like "delete own worklog" when there's no work log enabled in the project.

This widget could not be displayed.

typical jira stupidity. sorry, bitter and frustrated developer sick of the neverending queue of obvious omissions like this one.

This widget could not be displayed.

Yes, that it wouldn't be an option. Easiest workaround: Create a project role of Project Lead and then, whenever you assign the user to the built-in Project Lead, make that person the same for your own Project Lead role. Then, in Conditions you can select User in Project Role and choose Project Lead.

Stinks that you have to manage it in two places instead of one, but better that than writing a script, IMHO

This widget could not be displayed.

I need this also, but it's not in the default conditions shipped with JIRA.

I created https://jira.atlassian.com/browse/JRA-28975 for this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Jira

New 5k User Limit and Other Cloud Updates

Hi all! Lauren here from the Enterprise Cloud marketing team.  I have some exciting Cloud updates from #AtlassianSummit that I wanted to share. We want everyone in your organization to be ab...

109 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you