Hi Community,
I have a puzzler and I am going around in circles trying to create a jira automation rule.
The scenario:
I have a JSM project, there is a request type for customers to raise an incident when their equipment is broken and needs to be replaced.
The customer will select the damaged equipment when submitting the request via a custom field field, Affected Assets. The objects referenced have an Owner attribute, and a Status attribute.
The Owner attribute reference's a User object which is the customer.
The Status attribute reference's the equipment's current operational status.
Object 1 will have an Owner attribute value of the "customer object", and a Status attribute of "Allocated".
I hope you are with me so far
Next, the agent will select another asset object (equipment), using the same custom field so now there are 2 objects referenced in the custom field. The new object will be the replacement equipment. The agent can see the object's Owner and Status attributes so they can make an informed choice that they are allocating an object with a Status of Unallocated and Owner is empty.
This is where the automation rule comes in (I know what you are thinking, get on with it
)
I need an automation rule that triggers when the request is transitioned to Closed. (easy so far)
The object that has an Owner, (and the Owner equals the issue reporter) needs to be cleared, and the Status set to Unallocated.
The object (equipment replacement) that has no Owner needs to have the issue reporter as the Owner set, and the Status of the object updated to Allocated.
Is this possible?
Thanks,
Danny