refamojo.blogg.se

Youtrack workflow
Youtrack workflow




youtrack workflow
  1. #Youtrack workflow update
  2. #Youtrack workflow code
  3. #Youtrack workflow download

What are those? Actions are custom actions that user may run on issue. YouTrack allows to create also On Schedule and State Machine rules, with other possibilites and in the new JavaScript Editor we can also create Actions. Both were simple, Stateless / On Change rules. Here we created two rules for our YouTrack Workflows. The new workflow is visible on the list and may be attached to any project, that has Fix versions field.

#Youtrack workflow code

The workflow.check function takes the boolean value and shows the error if it’s false.įinally all there is to do is to click the magic wand icon to reformat code and save the rule. If so, our field, previously set in requirements and now taken from the context, was changed, we show the error. Then we check, if the user has Reporter role in the current (issue’s) project. Here we take the issue object on which rule was fired from the context, as well as the user. If we try to attach this rule to the project without Fix versions field, we will see the error message with auto-fix proposition. This field is then available in our rule in context (ctx) object. Here we define that there should be available Fix versions field of the type ProjectVersion, which may take multilpe value. Those conditions determine if rule works. Requirements help to define base conditions for the project or system. As the title is pretty obvious, let’s look at the other two, starting with requirements. The rule has 3 properties - title, action and requirements. Then we define our rule - the “onChange” is type of rule that replaced “Stateless” type from old DSL. rule User Stories added to sprint must have story points when issue.Type = ) įirst two lines provides us build-in objects with access to system data and functions. Each part is now marked with a comment in angle brackets.Īs Workflow Editor has some formatting and syntax enforcing features, it may be easier to rewrite code given below than trying to copy and paste it. First one is the rule name, second is the condition in which it will be run, and third is the actual action to perform. Now you should have open editor for the new rule. To do this select Workflow on the list and select “Workflow / Create Stateless Rule” from the menu. We will do the second - lets add new rule to existing Workflow, “jetbrains-youtrack-scrum”. Now you may edit existing rules or create new one. Most of them (or all, if you didn’t load any custom ones) will be build-in Workflows with name starting with “jetbrains-youtrack-”. In a few seconds the same YouTrack Workflows you saw earlier on the admin page should appear on the list on the left.

#Youtrack workflow download

To do it just select “Workflow / Download workflows from server”. The next step is to download current configuration from YouTrack. Downloading current YouTrack Workflows from YouTrack instance Test the connection, and if everything is good confirm with the “OK” button. There pass URL to your instance (the same path as when you launch YouTrack in browser) and your login and password. To connect to your YouTrack select “Workflow / Connection Settings…” from the menu or just simply click on link in yellow “Connection Problem” alert.

  • download current YouTrack Workflows from it,.
  • youtrack workflow

    Unfortunately, for some reason it requires Java 5 or 6, not newer! To create rules using DSL you need to download YouTrack Workflow Editor.

    #Youtrack workflow update

    Need of such rule came up after we forgotten few times to fill this field during YouTrack update after Sprint Planning. Creating YouTrack Workflows using DSL - the old methodĪs I said, we would like to add rule that issue of type User Story, added to Sprint, you should have set value for Story Points field. Both rules are real use cases from our company and I will describe them in next chapters. Secondly, we will create new Workflow with JS rule that will prevent to change some fields values by some users. We will use DSL to add rule that prevent adding User Story type issues to Sprint if they don’t have Story Points set. Here we will investigate both methods.įirstly, we will extend the “Scrum” Workflow. Recently, an experimental function of creating Workflows in JavaScript was added in YouTrack 2017.2. Until now Workflows were described by specific DSL, which you have seen in details panel of build-in rules. Of course, sooner or later, you will come to the point when you want to create own custom rules or editing existing ones to better fit your needs. YouTrack) and first part? Creating your own YouTrack Workflows YouTrack Workflows - how do we customize our project managing tool (part II)īefore you start reading second part about YouTrack Workflows, we recommend to read intro (Jira vs.






    Youtrack workflow