The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is the REST API endpoint /plan/{projectKey}-{buildKey}/variables [POST] buged?

Jonathan Ghellere
June 29, 2022

Hello Community,

I'm trying to create a variable in a plan using the REST API and cURL. 

The following command works fine:

curl -k -H 'Authorization: Bearer XXXX'  https://localhost:8443/rest/api/latest/plan/AAAA-BBB/variables.json

[{"name":"aaa","value":"bbb"}]

But when I try to send a POST request to add a new variable, I get the following message:

curl -k -H 'Authorization: Bearer XXXX' -H 'Content-Type: application/json' https://localhost:8443/rest/api/latest/plan/AAAA-BBB/variables -d '{"name":"ccc","value":"ddd"}'

"You must enter a valid variable name"

Is this a BUG?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
sunil jaiswal
September 19, 2023

I think it was a kind of bug they fixed it.

You can see this https://jira.atlassian.com/browse/BAM-21787

TAGS
AUG Leaders

Atlassian Community Events