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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Passing raw JSON object using {{webhookData}}

We are using JIRA Automation and we have a rule setup to create an issue. We're using the "Additional fields" section but we want to pass the raw JSON from our server to the webhook. It looks like {{webhookData}} can only read string values, is this correct? I can do {{webhookData.fields.summary}} to read the summary but I want to just treat {{webhookData}} as actual JSON and not a string. That way we can control what gets set from our server that is calling the webhook.

1 answer

Hi @RobotGizmo 

Did you find an answer to your question?  I have been using Automations with both Incoming and Outgoing webhooks lately.  I've been unable to find a way to use a straight up {{webhookData}} smart value.  (My question is here.)

I can access fields within the JSON webhookData payload, as you suggested (e.g., {{webhookData.somefield}}. 

So, to send an outgoing webhook from Jira, I've had to manually format my JSON, pulling values from the incoming webhook (i.e., "description": "{{webhookData.somefield}}").

And to use the Additional Fields to create an issue, I've had to (i.e., "description": "{{webhookData.somefield}}") as described in the Atlassian Docs, replacing values with {{webhookData.field}} smart values from the webhook.

I'd love to know how you handled your issue.

Mark

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

350 views 13 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you