You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi, everybody!
I wonder is it possible to pass any JIRA REST API parameter via Webhooks from another application to JIRA.
I would like to do a JIRA transition (or update an issue field value) by GitLab Webhooks.
For example:
curl -D- -u USER:PASS -X POST --data ‘{“transition”:{“id”:“TRANSITION_ID”}}’ -H “Content-Type: application/json” JIRA_URL:JIRA_PORT/rest/api/latest/issue/<JIRA_ISSUE>/transitions?expand=transitions.fields
(it given from https://community.atlassian.com/t5/Jira-questions/JIRA-How-to-change-issue-status-via-rest/qaq-p/528133)
If webhooks a common tool witch used to send POST request(REST API) to application aside, is it means what I can pass any REST API parameters to another application?
As I know webhooks can pass REST API parameter only in query strings using ‘?’ and ‘&’ sign. But often REST API documentation gives you info how to pass parameters only via a request body(JSON).
(e.g. https://developer.atlassian.com/server/jira/platform/rest-apis/)
But I can’t use it in webhooks. Sometime I just trying to pass those parameters via query string and it goes well, but in case of a transition I can’t do it.
So I confused.
Can I use Webhook to pass any parameters to JIRA or not? Is there a special key to include a request body(JSON) in webhooks as in cURL command “–data”,"-d" key?
Or it is impossible at all and I can pass via query strings only some parameters and other via request body(JSON)?
Could somebody help me to figure out with Webhooks and JIRA REST API?
Hi!
Eventually after some investigation and talking this other specialists I came to the conclusion that there is no way to set up parameters higher than second layer of the structure via Webhook