Forums

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

Automation rule not copying custom field values from linked issue

Sebastian Santoyo
Contributor
July 12, 2025

Hello community,

I'm trying to set up an automation rule so that when a Task (red) is created, it automatically copies specific field values from the related Requirement (green).

🔧 Current setup:

  • Trigger: Work item created

  • Then a condition: Request Type = Tarea SC

  • After that, I use a Branch rule with a JQL query to find the related Requirement (via the "is blocked by" link type).

  • Inside the branch, I use an Edit work item action to copy values from several custom fields.

✅ Expected behavior:

When the Task is created, the following fields should be automatically filled with values from the Requirement:

  • Nombre de Requerimiento

  • Frecuencia del Requerimiento

  • Vía de Entrega del Requerimiento

❌ Actual result:

These fields remain empty. They show up as “None”.

📎 Evidence attached:

  • A screenshot of the Task showing the empty fields

Screenshot 2025-07-12 at 10.26.42 p.m..png

  • A screenshot of the linked Requirement, where the fields are properly filled

Screenshot 2025-07-12 at 10.23.55 p.m..png

🤔 My question:

Am I missing something in the rule logic?
Is it possible that the way I'm referencing the linked issue's fields is incorrect?

Any guidance or suggestions would be greatly appreciated.

the JQL that is not working apparently:
issue in linkedIssues({{issue.key}}, "is blocked by") AND "Request Type" = "Requerimiento SC"

Screenshot 2025-07-11 at 5.00.28 p.m..png

Screenshot 2025-07-11 at 5.00.48 p.m..png

 

 


👉 Final note: The automation doesn't necessarily have to follow this exact sequence of steps. My main goal is for the “copy” fields in the Task to inherit the values from the original fields in the linked Requirement.
If anyone suggests a simpler or more effective approach, I’d be happy to consider it.

2 answers

2 votes
Walter Buggenhout
Community Champion
July 13, 2025

Hi @Sebastian Santoyo,

I may be mistaken, but if I understand your use case correctly, I have the impression that you are making things overly complex.

Assuming that you just want to copy values from a newly created work item from a linked work item from type requirement, you can use a smart value to refer to that specific requirement item to copy values from.

In your rule, you are trying to use a {{lookupIssues}} smart value, but:

  • if you want to do this, you would need to run a Lookup Issues action first in order to get data into that smart value (which you are not doing in your rule, so there's nothing to lookup from);
  • if you only have 1 item to copy the data from, there is no need to do a lookup via JQL

I have a sample rule in a test environment of mine that looks like this:

Screenshot 2025-07-13 at 13.12.02.png

It uses the link to another item to determine where to get its source data from and the built in function Copy (field value) from destination work item to locate the linked work item as a source for the data.

It could be that you could simplify your copy logic very much in the same way to achieve your goal.

Hope this helps!

0 votes
Trudy Claspill
Community Champion
July 13, 2025

@Sebastian Santoyo 

This topic appears to be a duplicate of the one you already started here

https://community.atlassian.com/forums/Jira-Service-Management/Linked-Issues-Create-Queue-or-report/qaq-p/3064240

I will stop responding on that Question and start contributing here. In the future it would be better if you did not make multiple Question posts for your topic as it makes it more challenging for the responders to built off of each others replies.

Here is my reply copied from the other post:

 

Hello @Sebastian Santoyo 

As I mentioned in my previous reply, please show us the output in the Audit Log for the rule. That will provide critical information needed to debug your issue.

  1. Can you confirm that the rule is triggered by creation of the RED issue (Tarea SC)?
  2. Is the JQL you have specified is attempting to retrieve the GREEN issues (Requirements) linked to the RED issue?
  3. Can you provide a table that shows the field names in the GREEN issue paired with the field names in the RED issue to show which fields you are trying to copy data from and to? In that table also specify the Field Type of each field. Example
Green Field  Green Field Type  Red Field  Red Field Type 
Frecuencia  Single Select List  Frequencia de Requerimiento  Single Select List

4. Are you trying to do a straight copy of data? If so, what do you expect to happen if the linked issues have different values from each other?

 

If the answers to 1 and 2 are "Yes" then your rule is not structured correctly.

When you use a BRANCH (For Each) component and nest actions under it, as you have done with the Edit action, the nested actions are taken against the issues you selected in the BRANCH, not the issue that triggered the rule. So, the Edit action is trying to edit the issues found by the JQL.

Additionally you tried to use the smart value {{lookupIssues}} in the branch to get the value you want to copy. The {{lookupIssues}} smart value is only populated when you use a Lookup Work Items action, which you have not done.

 

When you more fully describe the details of the fields and scenarios I will be able to offer you more specific guidance.

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