I am aware that in order to get JSON using Jira's REST API I need to be logged in or use OAuth to verify the program. The system I am using puts severe restrictions on me, and cannot call/use outside programs/jar files/frameworks to verify. Is there any way to embed user credentials in the URL, or setup a way to disable login requirement? I have read through the REST doc for JIRA and seen an uncountable amount of JIRA tutorials from Atlassian, so that will most likely not help to post.
Community moderators have prevented the ability to post new answers.
I would think you could only connect without requiring a login if you enabled anonymous access to your JIRA.
When you say you can't use any programs/jar files/frameworks, how are you actually accessing the REST API?
When I have used the REST API, I have authenticated by sending an authorisation header along with the request.
In groovy,
def authString = "${username}:${password}".getBytes().encodeBase64().toString() 2 jiraClient.post(headers:['Authorization':"Basic ${authString}"], path: ...])
You can see the full code here here: http://blog.anorakgirl.co.uk/2013/02/groovy-use-of-the-jira-rest-api-to-update-a-custom-field-with-the-issue-description/
I realise this uses the groovy http-builder jar, but the concept of sending an authorisation header might work with whatever method you are using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.