Agnus Dei (jackal) wrote,
Agnus Dei
jackal

Bash Script to list out your current open JIRA tickets (using JIRA API)


#!/bin/bash
JIRA_USERNAME=brad.allison
JIRA_PASSWORD=XXXXXXXXXXXX
JIRA_HOSTNAME="jira.XXXXXXXX.com"
URL="https://${JIRA_HOSTNAME}/rest/api/2/search?jql=status+%21%3D+Closed+AND+status+%21%3D+Resolved+AND+assignee+%3D+${JIRA_USERNAME}"
curl -u $JIRA_USERNAME:$JIRA_PASSWORD -X GET -H 'Content-Type: application/json' --insecure --silent $URL |perl -MData::Dumper -MJSON=from_json -ne'print Dumper(from_json($_))'

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments