Forums

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

How to automatically assign an issue to the project lead via post functions?

Deleted user January 20, 2019

Jira allows for the assignee to be set to the component lead (i.e., "Lead Developer") or to the issue reporter. But what about assigning the issue -- via post functions -- to the designated project lead, as defined in the project settings?

2 answers

1 accepted

0 votes
Answer accepted
Yogesh Mude
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.
January 20, 2019

HI @[deleted]

Welcome to the Community!

The best way to do is using component, if you are not yet starting using component then using post function you can configure it.

Just you need to use Update Issue field post function on the create issue transition and then select Assignee as field and then provide the username to whom you want to assign the ticket.

Please have a look at the below KB article for details.

https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html?_ga=2.44288868.1707983477.1548048583-1089970552.1548048583#Advancedworkflowconfiguration-postfunctions

Deleted user January 20, 2019

Hi Yogesh. Thanks, but I'd like to make the setting flexible. What if the project lead changes? I'd like to make it so that nothing gets hard-coded with actual usernames, but with roles.

Like Gary Pezza likes this
Yogesh Mude
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.
January 20, 2019

yeah...its good...then please follow the below steps..

1. Create project role and add user to it.

2. Create User picker custom field.

3. Add the filter with created project role.

4. Add this user picket custom field on create issue screen.

5. Add the update issue custom field post function on create issue transition and select the created user picker field in step 2.

Whenever the project lead will change then just you need to add that particular user into the project role created in step 3 and automatically this user reflects in user picker field and then you can choose the user and assign it again.

Deleted user January 20, 2019

Thanks very much! This works for me.

1 vote
Vasiliy Zverev
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.
January 20, 2019

If component is not defined, you can use "Assign to Lead Developer": https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html

Deleted user January 20, 2019

Yes, but what if components were defined?

Yogesh Mude
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.
January 20, 2019

If you are using component then you can define the default assign as Project Lead for that respective component and whenever the user will create as issue with the specific component then the ticket will auto assign to the project lead as you have selected as default assignee for the component.

Divjyot Puri May 25, 2020

Hi, I have two separate projects and both of them are having two different Development leads. However, both the projects are using same Jira workflow. I want to assign the tickets to Development lead for "Code Review" using post function. What is the best way to implement it as we are not using components?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events