Jira

Show active jiras for logged in user

project = ${PROJECTNAME} AND assignee in (currentUser()) AND status not in (Closed) AND status not in (cancelled)

Show closed jiras between dates

project = ADDO AND status = Closed AND resolutiondate >= '2020-01-05' AND resolutiondate <= '2021-04-20' ORDER BY resolutiondate

Jira API

These samples are meant to be run on the command-line.

In the samples, $auth, in the Authorization-header can be gotten by:

auth="$(echo -n _username_:_password_ | base64 -w0)"

... where _username_ and _password_ are your Jira account username and passwords.

Furthermore, $host, is the base URL to your Jira server.

Get list of projects

curl -H "Authorization: Basic $auth" -H "Content-Type: application/json" $host/rest/api/latest/project

Get details about project

project="10506"   # from command above
curl -H "Authorization: Basic $auth" -H "Content-Type: application/json" $host/rest/api/latest/project/$project

Get details of release / version

version="16213"   # from command above
curl -H "Authorization: Basic $auth" -H "Content-Type: application/json" $host/rest/api/latest/version/$version/relatedIssueCounts

Search a release / version

curl -H "Authorization: Basic $auth" -H "Content-Type: application/json" $host/rest/api/latest/search?jql=project=${project}+AND+fixVersion=$version