Forums

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

Set issue fields post-funtion - core field project lead

Anette Noll
Contributor
April 19, 2024

Hi everyone,

after some searching I can't find a solution for the following:

I want field assignee be set to core field "project lead" (from project settings). But "Project Lead" is not in the issue fields selection and I cannot identifiy the id of "project lead" in the usual way.

I am very curious about your responses.

Thank you.

2024-04-19 13_54_39-Transition_ Create - Jira.png

3 answers

1 accepted

3 votes
Answer accepted
David Fischer
Community Champion
April 19, 2024

Hi @Anette Noll 

if I udnerstand correctly, you're trying to automatically assign issues to the project lead of the project, correct?

Using JMWE's Set Issue FIelds post function, the value would be:

{{issue | projectInfo | field("lead.accountId")}}

However, you can also simply set the default assignee for the project to the Project Lead (in the project settings.

As for hiding the Assignee field on the Create screen, you need to update the Create screen associated with your project, which is configured in the Screen Scheme. You might need to create a new screen if your screen scheme currently uses the same screen for creating and editing issues. Then on your Create screen, simply remove the Assignee field.

Anette Noll
Contributor
April 19, 2024

Hi @David Fischer 

thank you so much. It is just the expression I need!

0 votes
Rilwan Ahmed
Community Champion
April 19, 2024

Hi @Anette Noll ,

You can make use of inbuilt post function "Assign the issue to the lead developer"

i.e. the post function will assigns the issue to the component lead, if one exists, or to the project lead.

It also assigns to project lead if the ticket does not have any components selected. 

0 votes
Kai Becker
Community Champion
April 19, 2024

Hi @Anette Noll 

thanks for your question. I'm not quite sure if you can use smart values in such a post function. Is this a third party addon?

Is there anything against setting the value via automation rule?

Dick
Community Champion
April 19, 2024

post functions in Jira are located "on" the arrows in a workflow. 
edit a workflow, click an arrow and you get the small window where you can i.e. set the transition screen. Also visible is the link towards the post functions.

Anette Noll
Contributor
April 19, 2024

Hi @Kai Becker 

thanks for response.

Yes, we use JMWE.
As we have the standard license and as far as I know number of free automations are limited in this case, I would like to avoid this way.

But anyway I just recognized on the project settings side that Project lead is default assignee, when creating issues for the very project. So I wonder if there is a possibility to hide the assignee field in the create screen?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events