Hi there,
in order to get the lead of a component used in an issue, i managed to build a manual test automation that sends a web request following this guide
Automation for Jira - Send web request using Jira ... - Atlassian Community
I successfully retrieve the component and therefore it´s lead - printed in "Audit Log"-Actions as {{webhookResponse.body.lead.displayName}}
- Manual trigger
- If issue matched %project% AND component not empty and status is one of the following (%list_of_preferred_statuses) ...
- Then add audit log action {{issue.components.id}}
- add audit log action {{issue.components.name}}
- and send web request
- https://base-url-of-our-installation/rest/api/2/component/{{issue.components.id}}
- using the token for authentication, using GET, body empty
- and again, adding audit log {{webhookResponse.body.lead.displayName}}
The desired information is present. But how can i use it in an automation ?
I want to achieve following:
When SLA "Priority XYZ" is breached() AND component is not empty AND assignee is empty AND issue not updated in X time, THEN check %component_lead%, assign the issue to him/her und leave an internal comment
Any suggestions on how to deal with that ?
Thanks upfront
Eric