How to create a New Issue Template

Hey guys,

I was wondering if it is possible to automatically fill out a blank issue with a few headers, depending on Type of issue.

e.g. If the user selects "Bug" as the type and the issue description content is empty, then fill it out with
Observed Behaviour
{insert your own text here}
Expected Behaviour
{insert your own text here}
Steps to reproduce
{insert your own text here}

Thanks,
  Rob
7 comments
Comment actions Permalink
Hi Rob,

you can modify the 'jetbrains-youtrack-defaultDescription' workflow a little to make the trick:
rule Description template for external users 
 
when !isReported() && description == null && Type.becomes({Bug}) { 
  description = "What steps will reproduce the problem?\n" + "1.\n2.\n3.\n\n" + "What is the expected result?\n\n" + "What happens instead?\n\n" + "Please provide any additional information below.\n" + "Attach a screenshot if possible\n"; 
}
prettyPrint();
0
Comment actions Permalink
Hello Rob,

We have a workflow 'jetbrains-youtrack-defaultDescription' which provides a default description pattern.
What steps will reproduce the problem?
1.
2.
3.

What is the expected result?

What happens instead?

Please provide any additional information below.
Attach a screenshot if possible
prettyPrint();

It calls when user fills in the 'Summary' field and focus on the 'Description' field.

Navigate to Administration -> Projects -> particular project -> Workflows tab -> Attach workflow -> 'jetbrains-youtrack-defaultDescription'

Thank you.
0
Comment actions Permalink
First off thanks for the replies :)
Anyways, after trying in vein to export the work flow, edit and re-upload myself, I downloaded the Workflow Editor. I now have the issue that I'd like to have the query
when !isReported() && description == null && (Type.becomes({Bug}) || Type == {Bug}) {
    description = "My new description for a blank bug report.";
}
prettyPrint();
but for the life of me cannot work out how to group an expression...
0
Comment actions Permalink
Hi Rob,

Could you please clarify what the
Type == {Bug}
prettyPrint();
shoud do in this context? It's not clear, because you have already have
{Type.becomes{Bug}
prettyPrint();

Thank you.
0
Comment actions Permalink
The default type for the issue was bug, and hence would never "become" of type bug as it already was, and thus wouldn't trigger the work flow. So that's why I wanted to check that if it was already of type bug and if so then fire the code. Anyway I got around it by setting the default type to nothing, so all is good. Thanks
1
Comment actions Permalink

Dear all,

thanks for the great description!

We are using the  YouTrack Cloud version, and would like to create my own "Template".

I've tried to ways:

- Adding my own workflow (Basically, trying to save the code inspired by `Description template for external users` as .txt and trying to upload the .txt

- Attaching the `Description template for external users` template and modifying it to our needs.

Both of them failed for YouTrack's cloud version.

What is the way to go ahead? Do I need to install YouTrack locally (I've already done this, but it begins with empty projects etc)? In case, what is the right way to a) get all online info to the local YouTrack and b) create and download the workflow?

 

Or is it possible in the online version?

 

Thanks a lot!

 

1
Comment actions Permalink

Hello Elke,

First you need to download the workflow editor from here. Scroll down until you see "workflow editor" tab and click on the download button

Then install it and connect with it to your youtrack instance from "Workflow" -> Connection settings

Then you need to  "Download workflows from  server" and once you got them you can edit/add a new one.

 

I hope this helps!

Bogo

0

Please sign in to leave a comment.