How to automatize creating templated task in JIRA

David Miklas April 1, 2012

Hi,

is there a way to set JIRA to automatically make a templated issue if I tell it to do so?

For example, I want to make a new task. option one is by web interface, option two is by an email. I know how to do these. The think I need to do is that JIRA would create a new task with certain predefined parametres and also create some predefined subtasks with predefined parametres.

In reality, it would look like this:

email -> creates task SOME_TASK and also three subtasks SUBTASK_ONE, SUBTASK_TWO, SUBTASK_THREE, which will assign to person A, person B and person C (subtask_one to person A, subtask_two to person B etc.)

I've looked in plugins exchange and in JIRA administration, but without luck so far.

Thank you for your reply.

5 answers

0 votes
Giulio Roggero January 7, 2014

You can use workflow transitions post functions. Here is an example about creating sub-task automaticcaly http://isolasoftware.it/2014/01/08/create-an-issue-in-jira-with-predefined-sub-tasks/

0 votes
Giulio Roggero January 7, 2014

You can use workflow transitions post functions. Here is an example about creating sub-task automaticcaly http://isolasoftware.it/2014/01/08/create-an-issue-in-jira-with-predefined-sub-tasks/

0 votes
Beth Schaefermann
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2012

While the JEMH plugin satisfies the "create by email" requirement you allude to in your request, there are two additional work-arounds.

(1) Use templates in Bonfire

(2) Create a version called Templates, create the issues you want to use as templates, and whenever you want to create an issue from a template, clone one from the Templates version

You may also be interested in tracking this feature request:

https://jira.atlassian.com/browse/JRA-7731

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2012

Renjith has covered what I'd say about an external approach (coding outside Jira)

You could write a listener that spots the "create" event for "some_task" and then creates the subtasks. Or even a post-function in the create step. Both of those wouldn't care whether the issue was created in the UI or via email - they'd both be triggered. The email may be a little tricky though - you'd want it to capture detail from the emails, and the standard handlers don't do much more than simple "summary = subject, description = body" and a little bit around reporter and assignee. With the UI, you could easily prompt the user for fields which then generate more information on the subtasks.

I don't think you'll find this as a plugin though - it's quite a detailed requirement and plugins are usually written for general cases, and hence rarely do everything you might want.

Personally, I'd start with https://studio.plugins.atlassian.com/wiki/display/JEMH/JEMH+Home for the email side of it, and then have a look through the other plugins in the library for ones that can create subtasks. Whilst I don't think you'll get a perfect match, you'll find stuff that gives you a good start.

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 4, 2012

Issue templates from email are a natural extension to JEMH (currently only UI supported fields can be configured to apply by default), I've logged https://studio.plugins.atlassian.com/browse/JEMH-653 with some initial thoughts on how JEMH could support this. Anyone with email driven templating, please comment on your expected use!

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2012

Porbably just a comment. We used SOAP interface for a similar requirement to create such a customized set of issues, and it was written as an Outllook plugin which helped users to quickly create using the mail subject/body/attachments.

Suggest an answer

Log in or Sign up to answer