Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Eric July 24, 2023

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

2 answers

0 votes
Sean Cooper April 2, 2025

For anyone stumbling on the same issue.
Create your webhook as follows: setup a secret key (no base64 encoding. Just Bearer key#
key.png

Create your web request using the key we just created:
webreq.png

One your request is complete choose to edit the issue assignee.

editissue.png

Enter your webhookResponse as a smart value to set assignee and you're done.

assigneevar.png

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

Atlassian Community Events