Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A command line tool for generating scrum cards from jira

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 GemFile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.textile
Octocat-spinner-32 RakeFile
Octocat-spinner-32 VERSION
README.textile

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 bussiness_value

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

Something went wrong with that request. Please try again.