Hello everyone,
I want to create an automation rule that will do the following:
- Periodically check if there are Certificate objects whose expiration date is lower than 30 days
- For those that fit this condition I want to create a ticket with some information:
- The project must be the correct project (Certificates have inbound relationship with Host objects in which there is an attribute with JSM projects filled in) - I have no idea how to pull this information in a smart value or something similar so that it is dynamic for each found Certificate
- In an Asset field save the related Certificate
- Update the "Status" attribute of the related Certificate to "UNDER RENEWAL"
I have found this community post which helped me get started, but I got stuck quickly:
https://community.atlassian.com/t5/Jira-Service-Management/Automation-loops-with-Assets-Objects/qaq-p/2267068
Now, what I did (as suggested in the post I linked) was I added a branch on AQL component with the following AQL:
objecttype = "SSL Certificates" and "Expiry Date" < now(30d) AND "Expiry Date" >= now(-1d)
This finds the correct objects which I confirmed with a log component.
Now my problem is how do I reference the linked "Host" object where the correct JSM project is stored in an attribute called "Related Project".
If anyone is wondering, our JSM structure is 1 project per client, that is why we have this attribute in Host objects.
Thank you!