https://10.0.9.202/api/Engineering/Analysis/Validate?Plant=EAES&Partnumber=1310468W001
hi,, im new to jira and i want to call above api with parameter Plant and Partnumber on transition using post function .
Basically what i want is when i click on tempvalidateRest transition ,Api should call and according to Plant and Partnumber values or status should update in other application ..
for this i hvae created webhook and call it on post function .. but the values are not updating ..plz help me with this
Hi @Sneha Gole
welcome to Atlassian Community!
Unfortunately, it is not possible to use your own variables (based on custom fields' values in issue) in webhook's url.
But I can image another approach could work for you.
Do you have Jira server or cloud?
If you have Jira server, I would recommend you to use ScriptRunner add-on and create post function with groovy script, which will take the values from the issue and use them to create url and body of the request.
hiiiii @Hana Kučerová I have remove custom fields ..now i have just create transition with none screen selected.
and i have set " https://10.0.9.84:443/API/Engineering/Analysis/Validate?Plant=EAES&PartNumber=E171476Y001001 " url in webhook ..
when i check the log file its show like below
does it means webhook is sent from myside correctly ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No ..im guessing may be its because of network policy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The data in other application is not updated what should i do now?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sneha Gole ,
did you try to check atlassian-jira.log?
If the remote systen doesn't "catch" the webhook POST, there should be record about it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can you please tell me how to post json data in webhook?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii @Hana Kučerová Can you please tell me how to post json data in webhook ? (i have API project on local machine and when i click on validate transition webhook gets call and get Plant and Partnumber in api project but not getting josn after i debug)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sneha Gole,
please check Exclude body parameter in configuration of the webhook in Jira administration. The checkbox should by unchecked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.