Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user it would be nice with a Jira example #108

Open
buep opened this issue Jul 17, 2017 · 2 comments
Open

As a user it would be nice with a Jira example #108

buep opened this issue Jul 17, 2017 · 2 comments

Comments

@buep
Copy link
Contributor

buep commented Jul 17, 2017

That includes many examples on how to extract data from jira, as well as a nice layout example.

Maybe there is a public Jira instance to use as example, e.g. like the Jenkins Jira?

@buep
Copy link
Contributor Author

buep commented Jul 17, 2017

The example should be propagated into the PAC container as well so there is something to run easily out of the box.

@JKrag
Copy link
Member

JKrag commented Jul 17, 2017

The bare minimum for a jira sample would be something like the following:

# Release notes
The following JIRA issues were adressed in this release.

{% for task in tasks.referenced %}
## {{task.task_id}} [{{task.attributes.data.fields.issuetype.name}}]: {{task.attributes.data.fields.summary}}
{% for commit in task.commits %}
- {{commit.shortsha}}: {{commit.header}}
{% endfor %}
{% endfor %}

## Unreferenced 
The commits below did not reference any JIRA issues

{% for commit in tasks.unreferenced %}
- {{commit.shortsha}}: {{commit.header}} 
{% endfor %}

This is just as basic as our existing default template but just adds jira issue type and summary (issue title) to "prove" that we have actually received data from JIRA. (i.e. verify that it is working end-to-end).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants