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

Programatically Updating Transition of a Status with a required field

MAB February 22, 2017

I am programatically updating the status of an issue using transitions (using JIRA Rest API). Its working perfect until transition has some required field to be updated to next status. JIRA Rest API is giving "Bad Request" error.

Following is my C# code

 

string extendedURL = String.Format("issue/{0}/transitions", issueKey);
string pJSON = "{\"transition\":{\"id\":\"" + newTransitionId.ToString() + "\"}}";

result = await PostRequest(extendedURL, pJSON);

 

where PostRequest is my defined function to call JIRA Rest API.

 

Please note that this is working perfect if there is no required field to do the transition.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2017

Have you tried filling in the mandatory field?

MAB February 22, 2017

How to fill that? I am new to JIRA Development. I am making json. Should i add my field in the json?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2017
MAB March 3, 2017

Thanks Nic

TAGS
AUG Leaders

Atlassian Community Events