Adding members to JIRA project using REST API in iOS.

Pete O'Neal September 11, 2015

Hello,

I am trying to add users to a specific project role in my JIRA project using the REST API. So far I can GET a list of current project members, but I cannot POST/PUT a new member to the project. I always end up getting a 400 Bad Request error. Here is the request I am trying to POST:
 

NSMutableDictionary *request = [@ {@ "user" : <JIRA Username> } mutableCopy];

 I am using this documentation as reference for my POST call: https://docs.atlassian.com/jira/REST/6.3.12/#d2e4662. Any info on why my request is being rejected would be appreciated.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Boris Berenberg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2015

I would start by confirming that you are creating your request correctly by using curl from the command line. Then if that works, you can diagnose how you are building that request in iOS.

TAGS
AUG Leaders

Atlassian Community Events