Forums

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

Automation actions - Assign issue to custom person field

Guilherme Taschetto July 9, 2020

I have multiple custom fields on my issue type. They're all PERSON fields, on which we assign Jira users.

  • Field A: Author
  • Field B: Revisor
  • Field C: Publisher

I want to create an automation to assign to PUBLISHER when issues transition between two states. None of the available options seem to allow this.

Does anyone have a way?

Reference: https://support.atlassian.com/jira-software-cloud/docs/automation-actions/

 

4 answers

0 votes
David Pfeifer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2022

 

 

 

0 votes
Marcus Siesenop
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 29, 2022

Hi,

I ran into the same Issue... After adding an Action to comment the customfield to an issue I was suprised to find some (REST?) result in the comment instead of an user....

Try

{{Publisher.AccountId}}

0 votes
Fabian Lim
Community Champion
July 31, 2021

Hi @Guilherme Taschetto:

There is a new feature in jira automation where you can now assign tickets to a specific smart value. 

- Select the Assign Issue Action

- In the "Assign Issue To" field select "Smart Value"

- In the "Smart Value" field add the smart value {{issue.Publisher}} or {i{ssue.customfield.id}} -> this is your user customfield.

Obrigado

0 votes
John Funk
Community Champion
July 9, 2020

Hi Guilherme,

Have you tried to create an Automation rule yet? If not, here is some additional information to get you started:

There are two types of automation:

  • Global: In the Free version, you get 100 executions per product, per month
  • Project: In all versions, you get unlimited executions per month

Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation

You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).

For more on using Automation For Jira see these help pages.

If you have already created a rule, but it is not working as you desire, can you share that rule here and what error you are getting?

Guilherme Taschetto July 9, 2020

Hi, John. Thanks for your reply.

Yes I created an automation rule in my project. The rule must ASSIGN THE ISSUE to a user defined in a custom person field. So I have the following action:

 

ASSIGN ISSUE
Assign issue to: SMART VALUE
User key: {{issue.Publisher}}

 

 And the result in the audit log is:

 

Action details:
Assign issue
Error on assigning issues
MKT-126: (The specified user does not exist or you do not have the necessary permissions)

 

The point is: a valid user is assigned to the Publisher custom field and yes I have necessary permissions as a Jira site admin.

 

PS: my Jira is in portuguese so I translated interface terms to english for out better communication.

John Funk
Community Champion
July 9, 2020

This doesn't look like an Automaton For Jira rule. Can you post the actual rule? 

You should be able to do an Edit Issue action and populate the Assignee field by copying from the Publisher field. 

Guilherme Taschetto July 9, 2020

Hi, John. Here it is. It is in portuguese so let me know if I can help you with the translation.

 

Screenshot-20200709174736-957x797.png

Guilherme Taschetto July 9, 2020

I tried to set a Edit Issue action as you suggested but the custom field does not apper in the fields selector. Maybe because this custom field is assigned only to subtasks inside my project?

John Funk
Community Champion
July 9, 2020

Don't use the Assign User action, use the Edit issue action. Then copy the field over. Yes, the field has to be available for the context you are trying to do. But the Publisher field is already populated on the same card, correct?

Italo Qualisoni [e-Core]
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.
July 9, 2020

Hi @Guilherme Taschetto ,

Great to see that you are using JIRA, I hope you remember me we studied together few years ago.

Looking at your action execution log, it seems that the user assigned to Publisher custom field has not the enough permission to be the assignee of the issue MKT-126

MKT-126: (The specified user does not exist or you do not have the necessary permissions)

 Probably you need to check your project permission schema and make sure that the user in Publisher custom field has permission to both:

  • Browse Project
  • Assignable User

Hope this helps

John Funk
Community Champion
September 20, 2021

Hi @Guilherme Taschetto  - Did this ever get solved for you? 

Suggest an answer

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

Atlassian Community Events