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?
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).
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.