write a script to dump release note issues from JIRA
Description
Acceptance / Success Criteria
None
Lucidchart Diagrams
Activity
Show:
Morteza July 28, 2022 at 6:52 PMEdited
I have created a simple script which allows us to interact with Jira server.
Features:
Retrieve Issue(s) which contain "Next" in the fixed Version
Retrieve Project and Release List (these information is required in order to generate the release notes)
Retrieve the fixed items for a release
(Additional Item) Get list of unresolved items assigned to the current user
A copy of the information shown on screen is saved under 'workspace' directory in either json,csv or txt format
Usage:
❯ python main.py -h
usage: Jira-tools [-h] [--version VERSION] [--releases] [--releasesWithInfo] [--projects] [--checkInvalidVersion] [--myitems]
options:
-h, --help show this help message and exit
--version VERSION, -v VERSION
Release version(For example, 30.0.2 or Meridian-2019.0.1)
--releases, -r Retrieve and update the release file
--releasesWithInfo, -ri
Retrieve release and show the status of items under it
--projects, -p Retrieve and update the projects file
--checkInvalidVersion, -ivv
Check for issue(s) that contain value Next in their fixed version
--myitems, -me Get Items assigned to me that are not resolved
Example:
❯ python main.py -me
* NMS-14530 write a script to dump release note issues from JIRA
* NMS-14459 Generate main yaml file dynamically
* NMS-14124 Reduce storage taken by artifacts
* NMS-14319 Investigate reducing vm/containers resource class
* NMS-13958 "vault" docs are missing main HTML documentation
Workspace layout:
❯ cd workspace && tree
.
|____30.0.0
| |____releasenote-30.0.0.txt
| |____fixedIssues-30.0.0.json
|____myItems.json
|____projects.json
|____releases.json
Script has been pushed to https://github.com/OpenNMS/release-tools/tree/main/Jira-tools
Fixed
Details
Assignee
MortezaMortezaReporter
Benjamin ReedBenjamin ReedStory Points
2Sprint
NoneFix versions
Priority
Critical
Details
Details
Assignee
Morteza
MortezaReporter
Benjamin Reed
Benjamin ReedStory Points
2
Sprint
None
Fix versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Created July 12, 2022 at 2:26 PM
Updated July 29, 2022 at 5:13 PM
Resolved July 29, 2022 at 5:13 PM
Since Jira is moving to the cloud, we will probably not be able to set custom templates for release notes.
Instead, write a script to generate the release notes from Jira and dump to markdown.
I already have a script half-written to do this, for OOH, just need to change the query and do a little extra header stuff.
twio-issues-list.pl