Forums

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

I want to copy the values of the Inspector (a multi-user picker custom field) from issue EX-1 in pro

Wing August 29, 2024

 

image.pngimage.pngimage.png

 

I want to copy the values of the Inspector (a multi-user picker custom field) from issue EX-1 in project (EX) to the Inspector field in an issue in project (MY) using automation.

The current error message is: "Error while parsing additional fields. Not valid JSON." How can I optimize this automation?

1 answer

0 votes
Trudy Claspill
Community Champion
August 29, 2024

Hello @Wing 

Welcome to the Atlassian community!

Are both projects Company Managed projects?

Do you want to copy all of the values?

If so, then you don't need to use JSON. You can use the COPY option for the field.

Screenshot 2024-08-29 at 10.10.36 AM.pngScreenshot 2024-08-29 at 10.11.10 AM.png

Wing September 2, 2024

Source field from another project, I through lookupissues query, when I need to I query to the issues inside the field value loop copy to the issues I connected

Trudy Claspill
Community Champion
September 3, 2024

Hello @Wing 

I am not clear about what you are trying to accomplish with your Automation.

You trigger the rule manually on a specific issue.

You then execute a Lookup Issues action to retrieve all the issues from the EX project.

Q1: Are you triggering the rule from an issue in the EX project or another project?

You said you want to copy the date from one specific issue - EX-1 - but your Lookup Issues action is getting all the issues from the EX project.

Q2: Do you really want to copy the data from one specific issue, and is it always the same issue?

Q3: Is that issue linked in any manner to the issue you want to update?

 

If you want to get the data from one specific issue, change the Lookup Issues action to retrieve that one specific issue using the JQL 

issue=EX-1

Then in your Edit Issue action you again do not need to use JSON. Instead set the field using the smart value:

{{lookupIssues.first.customfield_10050}}

Screenshot 2024-09-03 at 12.46.42 PM.png

Wing September 3, 2024

Thanks for your reply. I tried the method {{lookupIssues.first.customfield_1000}}, but because the type is (multi-user) and the log says: Non-active user [64004523bd6454c33dad1,7464846a484i464hdjj3ui], I wondered if I needed to use the id of the query in a JSON format before copying.

Trudy Claspill
Community Champion
September 3, 2024

Why are you trying to copy/add a Deactivated user account to the field?

Does Jira allow you to manually add a Deactivated user to that field? I suspect it does not. In that case you would not be allowed to add a Deactivated user via Automation either 

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