Create my own issue template

1. Let imagine I would like to split feature tasks from bugs using a predifined enumerated field in Issue - Type with values "Feature" for features and "Bug" for bugs.

2. Let imagine I would like to define custom template for issues in my project. For example I would like to describe features using use cases and GWT approach, for bugs template similar to build in "Default Description" - https://www.jetbrains.com/help/youtrack/standalone/Workflow-Default-Description.html#description-template

So the question is how exactly should I split a workflow for defining a different templates for issues based on the value of a "Type" field?

3 comments
Comment actions Permalink
Official comment

Hello,

I suggest you take a look at the default Task Assignee and Issue Property Combinations workflows that illustrate how to perform different logic based on the custom fields selection. You can extend the Default Description workflow in the same way by checking the selected Type value and generating the corresponding description text. 

Should you have any further questions, feel free to contact us.

 

Comment actions Permalink

Kind of works, but if you accidentally selected the wrong issue type, you won't get the new template. I bet with some more handcoding you can solve it, but I ran exactly to the same limitation.

0
Comment actions Permalink

Hello Gergely,

You can create an array of the required text templates and compare the current description text with these templates. This way, you will be able to replace the old description with a new one if this is the same as a template, 

I hope this helps. 

0

Please sign in to leave a comment.