Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Use webhook response (component lead) in automations {{webhookResponse.body.lead.displayName}}

Eric July 24, 2023 edited

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}}

  1. Manual trigger
  2. If issue matched %project% AND component not empty and status is one of the following (%list_of_preferred_statuses) ... 
  3. Then add audit log action {{issue.components.id}}
  4. add audit log action {{issue.components.name}}
  5. and send web request
    1. https://base-url-of-our-installation/rest/api/2/component/{{issue.components.id}}
    2. using the token for authentication, using GET, body empty
  6. 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

1 answer

0 votes
Eric August 15, 2023

Any help would be appreciated :-) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
5.11.2
TAGS
AUG Leaders

Upcoming Jira Service Management Events