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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

call external rest api using post function

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 image.png

1 answer

1 vote
Hana Kučerová Community Leader Nov 06, 2019

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 i have just create transition with none screen selected.



 and i have set "  " url in webhook ..

when i check the log file its show like below

image.pngdoes it means  webhook  is sent from myside correctly ?

Hana Kučerová Community Leader Nov 22, 2019

Hi @Sneha Gole ,

that looks good! Were you able to get the data in the other application?

No guessing may be its because of network policy 

The data in other application is not updated what should i do now?

Hana Kučerová Community Leader Nov 26, 2019

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.

hii @Hana Kučerová  No there is no such logs about it 

can you please tell  me how to post json data in webhook?


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)

Hana Kučerová Community Leader Dec 07, 2019

Hi @Sneha Gole,

please check Exclude body parameter in configuration of the webhook in Jira administration. The checkbox should by unchecked.

Like Sneha Gole likes this

@Hana Kučerová   hiii, can you please tell me how can i call api through scriptrunner ?

Suggest an answer

Log in or Sign up to answer

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