Forums

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

Copy Custom Field (User Picker) from a linked record to Assignee

Joshua Dumas
Contributor
March 4, 2022

Struggling to figure out how I can copy Custom Field (User Picker) from a linked record to the assignee Assignee

2 answers

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
March 4, 2022

Hi @Joshua Dumas - I'd need a little more information on the flow, but this should be possible with automation.  You'd need to have a trigger (e.g. issue updated, status change, etc.) and any conditions (e.g. issue type = x, link type = x, etc.).  

Joshua Dumas
Contributor
March 6, 2022

@Mark Segall -  so I have automation created so when an Issue is transitioned it looks at the linked issues and copies the custom field (Developer) from the linked issue to the assignee on the triggered issue but that isn't working

2022-03-06 17_26_34-Automation - Jira.jpg

Joshua Dumas
Contributor
March 6, 2022

here is the error I get

 

2022-03-06 17_37_57-Automation - Jira.jpg

Bill Sheboy
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.
March 7, 2022

Hi @Joshua Dumas 

You wanted to update the trigger issue's Assignee with the linked issue's Developer, correct?  If so...

When you edit an issue, the "current" issue is the one impacted, and "current" depends on where you are in the rule.  Inside of your branch, that would be the linked issue.

If you want to edit the trigger issue, you could use a lookup issues action with JQL to get the linked issue, and use that to edit the trigger issue: {{lookupIssues.first.Developer}}

Of note: do you ever have more than one issue linked to the trigger issue?  If so, please think how the rule should work in that case.

Kind regards,
Bill

0 votes
Joshua Dumas
Contributor
March 10, 2022

Here's how I solved this - thanks @Bill Sheboy 

NOTE: Don't use the drop-down, but type directly into the field (at the time, I didn't know you could do that) - find custom field by exporting issue that has custom filed as XML and locate field (in my case customfield_10085)

2022-03-10 07_48_02-Automation - Jira.png

Bill Sheboy
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.
March 10, 2022

Now that is interesting!  My understanding was that linked issues (and parent links) only had access to some fields (e.g. key, summary, story points) and not custom fields...leading to the need to use a branch, lookup issues, etc.  Otherwise a rule could potentially need to pull in a tree of issues' fields for the linkage chain, ever outward. 

The other possibility: this is now done dynamically and not limited to the initial scope of a trigger issue, branch, etc.  An experiment to try this would be to link a chain of issues, and then try to walk the chain with a loooooong smart value expression of link-to-link-to-link-...-to-custom field.

Joshua Dumas
Contributor
March 10, 2022

so I thought it was working, but I think you jinxed me as I changed the status, and the Assignee on the JIRA ticket never copied from the linked issue

I put branching in place and here's what I have and it still isn't copying - URG!!

 

TRIGGERING ISSUE - SFSUPP

LINKED ISSUE - ITSCR

When I have this automation it updates the LINKED ISSUE (ITSCR - where Developer is) to UNASSIGNED - I want it to work the other way around (take Developer from ITSCR and copy it to Triggering issue - SFSUPP)

 

2022-03-10 12_22_51-Automation - Jira.png

Bill Sheboy
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.
March 10, 2022

To use the Lookup Issues smart value, you first need to use the action for it.  Something like:

  • trigger: issue transitioned
  • conditions: as needed to confirm you have your necessary conditions
  • action: lookup issues with JQL to get the linked issue with an assigned developer
  • advanced compare condition: to confirm there were results in the lookup by testing {{lookupIssues.size|0}} equals 1 (or more if you expect that)
  • action: edit issue to set the Assignee from the Lookup Issues developer
Joshua Dumas
Contributor
March 10, 2022

here is what I ended up doing and works perfectly for ONE ISSUE linked to ANOTHER ISSUE 

 

2022-03-10 14_52_12-Automation - Jira.png

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events