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

Curl Put command in JIRA post function script

Hi

I am trying to Set Request Token using Curl Put command using JIRA Rest API 

curl -X PUT -H "Content-Type:application/json" -u admin:admin -d '{"token":"u511nbjarz6u6f7xhzdji29i91j339","issueID":14147}' http://<serverurl>/rest/api/2/issue/issuekey/properties/feedback.token.key

The same command runs fine and is able to Set Issue Property - feedback token when I run it in Server side using direct Curl command, but it fails when I try to do it using script.

Please suggest if someone has seen this before....

 

Here is the output for Failure I get: printing both Success and Failure - Success is blank 

Success ::::: Failure :::: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 60 0 0 100 60 0 1420 --:--:-- --:--:-- --:--:-- 1428

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Desk

The Complete Guide to Atlassian for ITSM

Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...

2,187 views 15 22
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