I have a PHP mash-up that needs to get all the issues in a version with the issue links included. The SOAP API doesn't include issue links in the RemoteIssue objects, but the XML result for a filter does. Trouble is you have to be logged in to do a JQL query.
So how does my PHP code login to JIRA so that it can get the XML result for a JQL query in order to get the issue links?
Alternatively, you can include os_username and os_password as the URL parameters with your request and forget about JSESSIONID:
http://example.com/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?tempMax=1000&jqlQuery=project%3DXYZ+and+fixversion%3D%221.7.0%22&os_username=login&os_password=password
Thanks, works a treat!
Is that mechanism documented anywhere? Can't find any reference to os_username in the official documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to send a valid JSESSIONID cookie with your request, which you should get when logging in.
To log in, you can use $jiraUrlBase/rest/gadget/1.0/login URL and pass os_username, os_password as form parameters and also os_cookie=true. Pass also "Accept: application/json" header and analyze the json that you get in response to see if the login was successful. JSESSIONID will be passed in Set-Cookie from the server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The REST API does provide issue links, but doesn't provide a list of all issues in a fix version. I've tried using POST auth/1/session to authenticate and then using the above XML filter query, but no joy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm connecting to JIRA 4.2.1 using PHP 5.3.4 and wanting to use a JQL query URL like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.