Automation for jira - How to send parameter in the webhook URL?

Elvy Feliz January 23, 2020

Hello,

 

I have a simple "Send Web Request" using Automation for Jira. The webhook URL is as follow,

http://localhost/job/ping/buildWithParameters?HOST={{issue.CustomField.10059.value}}&token=123456789123456789

 

The web request runs successfully and it triggers the jenkin build successfully. However, the {{issue.CustomField.10059.value}} comes out empty and Jenkins doesn't received anything. Doesn't matter what field I put there (even defaults like the issue key) it's never sent to Jenkins. 

 

Anyone know how I can fix this?

 

1 answer

1 accepted

0 votes
Answer accepted
Mark Chaimungkalanont
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2020

Hey there Elvy,

If you add a Log action with the value {{issue.CustomField.10059.value}} before the webhook and check the audit logs, does the value appear? What type of custom field is it?

In general, the syntax for a custom field is:

{{issue.customfield_10059}} (case is important) or you can address it by name

{{issue.My custom field name}}

See more information at https://docs.automationforjira.com/issues/find-the-correct-smart-value-for-fields-in-jira.html#finding-your-smart-value

Cheers,

Mark C

Elvy Feliz January 24, 2020

Hi Chai,

I actually fixed it by adding a Log action before sending the web request. That seems to fixed the problem. Thanks for the help.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events