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 :D
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 :D)
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
Hi @Danny
Have you tried using AQL to branch to the object(s) and then using the Edit Object action to make the changes?
Kind regards,
Bill
Thanks @Bill Sheboy I had previously attempted to test with the AQL branch and had gone down a rabbit hole. You reply prompted me to stand back and walk through the end goal in my head until I could visualise a logical set of queries and actions the rule needed to go through.
The steps that the rule takes now is thus:
All sorted and I'm happy. Also, I hope this helps anyone searching to achieve a similar goal.
Thanks again @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.