Forums

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

How can I transfer asset fields to a work item by rule?

Antonia
Contributor
July 14, 2025

Hello,

I have written a rule that when an asset reaches the device age of 4 years, a work item is created so that we can replace it.

However, certain fields must now be transferred from the asset to the work item. For example, the device age and the serial number of the device.
I have already created a custom asset field (for device age, serial number, etc.) in Jira, but how do I tell the rule that it should be filled in automatically? Do I do that where it says Additional fields?

Screenshot 2025-07-15 085056.png

2 answers

1 accepted

2 votes
Answer accepted
Evgenii
Community Champion
July 15, 2025

Hi, @Antonia 

Quick question about the custom fields you created — what type are they? Are they simple text fields or asset-type fields?

If they’re just text fields, you can populate them with values from the object attributes, just like you did with the summary using {{object.Hardware Device}}.

In the "Choose field to set" section, select the custom fields you created and fill them in with the appropriate smart values — for example, {{object.Serial Number}} (or whatever you’ve named the corresponding attribute).
chrome_150725_027.png

Antonia
Contributor
July 15, 2025

Hi @Evgenii

thank you! I created them as asset-type fields.. so I will change it or is there another way?

Evgenii
Community Champion
July 15, 2025

Create new short text fields, add them to the issue screens, and populate them with the appropriate smart values.

There's no need to use asset fields for this type of data — simple text fields will work just fine.

Like Antonia likes this
Antonia
Contributor
July 15, 2025

I have now created a few new fields in the request type, but I can't select them as a rule, they are not displayed. Do you know why? Or how I can add them to the issue screens? Because when I go to the fields and click on the three dots “Actions”, I can't really do anything.Screenshot 2025-07-15 120253.png

Antonia
Contributor
July 15, 2025

I have it now, thanks.

Like Evgenii likes this
0 votes
Marc - Devoteam
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 15, 2025

Hi @Antonia 

So they are assets fields, then you will need to know which asset the age is over 4 years, you will first need to get the asset key

Based on that value, you could create a variable.

Is see you log the object.key, so create a variable like object-key

Then work item create action, in the fields Device Age and Serial Number you could state the following:

Key = {{object-key}}

Suggest an answer

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

Atlassian Community Events