Project

jira-cards

0.0
No commit activity in last 3 years
No release in over 3 years
You can get individual issues or all issues for an iteration. see --h for more info
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 0
>= 0
< 0.10.4

Runtime

>= 0
> 0.3.0
>= 0
>= 0
 Project Readme

jira-cards

A command line tool for generating scrum cards from jira. It allows you to customise the styling of the scrum cards using an erb template.

Installation

You are going to need to

Configuration

When you first run the tool it will ask you:

  • The url to your jira instance e.g. jira.atlassian.com
  • A username & password for accessing jira. Whatever user you use must be an admin
  • Path to the wkhtmltopdf e.g. C:\\Program Files\\wkhtmltopdf\\wkhtmltopdf.exe
  • If you want to use the default templates
    • If no, the path to the template erb & css file

You can view the current configuration using the config command:

jira-cards config 

If you want to change the config, you can use the reset flag:

jira-cards config --reset

Commands

Issues

For printing individual issues.

—output: The path you want the pdf written to

e.g. c:\foo\bar.pdf

—keys: The issue keys you want to print

You can specify individual keys (separated by comma), e.g.

jira-cards issues --keys "foo-1, foo-4, foo-10" --output c:\temp\test.pdf

You can also specify ranges (a la ruby ranges) of keys e.g.

jira-cards issues --keys foo-4..foo-10 --output c:\temp\test.pdf

or you could go crazy and have both!

jira-cards issues --keys foo-4..foo-10,foo-14,foo-21..foo-35 --output c:\temp\test.pdf

Iteration

For printing all issues for a team for a specific version.

—output: The path you want the pdf written to

e.g. c:\foo\bar.pdf

—project: The name of the team

e.g. “Foo Team”

—version: The version you want to print cards from

e.g. “Iteration 30”

jira-cards iteration --project "Foo Team" --version "Iteration 30" --output c:\temp\test.pdf

Templates

The scrum cards are generated from an erb html template which is then converted to pdf using pdfkit. There is a default template however if wish to customize the look/fields you will need to set the path to the erb template and css stylesheet in the configuration (if you want to change the config: jira-cards config —reset). You can access all of the issues via the @issues variable (an array of issues). Common Properties:

  • issue_type: e.g. Story, Bug, Epic
  • summary
  • key
  • assignee
  • points
  • custom fields: all custom fields are available, e.g. “Business value” would be business_value

Have a look at the default template to see an example.