Skip to end of metadata
Go to start of metadata
Welcome to YouTrack Workflow Repository!
To use a ready workflow file in your YouTrack, please:
Download a workflow zip file.
If you are a project administrator, then import the workflow to your project in Administration > Projects > project > Workflow tab.
If you have system administrator permissions, then import the workflow to your YouTrack in Administration -> Workflow page and attach it to one or multiple projects.
You can also try any of the custom workflows listed below in our YouTrack InCloud test instance . All registered users get project admin permissions.
Continue
Custom Workflow Examples
This table contains various use cases and programmed workflow rules ready to be used in your YouTrack.
Votes and Watchers
(download zip file) Source Code
Add the project lead to an issue watchers list once the issue collects a certain number of votes.
Default Visibility Group (download zip file) Source Code
Set the default visibility group for all new issues in a project.
Requirements : group 'Reporters'
User Comment(s) Awaiting Reply Notification (download zip file) Source Code
If an issue has a recent non-developer comment, send a notification to a specific user (support team member). This check is performed at a given time (daily at 12pm by default).
Requirements : group 'developers-team'
Reopen Duplicate (download zip file) Source Code
Reopen an issue if all duplicate links are removed.
Clear 'Fix For Version' (download zip file) Source Code
Clear 'Fix for version' field when an issue is reopened.
'Unblocked' State (download zip file) Source Code
Provide an ability to have the issue unblocked (denoted with a "is blocked by" - "blocks" relationship) when the last remaining blocker is resolved and the issue has no remaining blockers.
Requirements : link types 'blocks' - 'is blocked by'
Semi-Automatic 'Wait for Reply' State Management
(download zip file) Source Code
When a comment from an external user is required, internal user sets issue state to 'Wait for reply' manually. When a comment is added, issue is automatically reopened. Assignee gets a notification if no comment is added within 5 days.
Requirements :
state 'Wait for Reply'
group 'developers'
Statemachine with 'Waiting for reply' state:
Changes issue state from 'Wait for reply' to 'Open' when comment is added by an external user
Notify assignee if no answer is received within 5 days
Notify User Mentioned in Comment
(download zip file) Source Code
Send notification to a user mentioned in a comment.
'Waiting for Reply' Tag Management (download zip file) Source Code
Replace 'waiting for reply' tag with 'answered' when a developer adds a comment.
Requirements : group 'developers'
Last Submitted Date for Duplicate Exceptions
(download zip file) Source Code
Show the last submitted date for the main issue when a new 'is duplicated by' link is added to it.
Requirements : field 'Last duplicate' of 'date' type
Restrict Fields Changing (download zip file) Source Code
Make some fields editable only by the issue assignee. Display an error message to any other user who attempts to modify the fields.
Duplicate Issues Only With Same Visibility Groups
(download zip file) Source Code
Disable duplicating issues with different visibility groups.
'Open' Assigned Issues (download zip file) Source Code
Change an issue state to Open when an assignee is added.
QA Verification Process
(download zip file) Source Code
Notifies a user when he/she is set to verify an issue
Requires setting 'Verified in build' value when changing state to 'Verified', and sets current user name for 'Verified by' field value.
Requires adding a comment when changing state to 'W/O verification'.
Requirements :
field 'Verified by' of 'user' type
field 'Verified in build' of 'build' type
state 'W/O verification'
Set 'verified in build' value
Set 'verified by' user name when adding 'verified in build' value
States machine
Require adding a new comment when changing an issue state
Advanced States Machine (download zip file) Source Code
Manage states transitions.
Requirements :
field 'Verified by' user of type 'user'
field 'Verified in build' of type 'build'
value 'W/O verification in bundle 'State'
state 'Wait for Reply'
Lifecycle of the State field
'On Duty' Management
(download zip file) Source Code
Manage duties. Requires a separate project to store duties. Duty is stored in the 'Assignee' field. The chain of duties is implemented as linked by 'is required for' link issues.
Requirements :
states: 'On duty', 'Active', 'On a rest'
new field 'day of week' of type 'integer'
Set today's person-on-duty based on 'is required for' link
Manage day of week:
Disable dropping Assignee:
Change Visibility Warning
(download zip file) Source Code
Warn on change of issue visibility.
Requirements : group 'developers'
Assignee and Multiple Subsystems (download zip file) Source Code
When a Subsystem is changed, set issue assignee to the subsystem owner.
Requirements : field 'Subsystems' of type 'ownedField[*]'
Feedback Management (download zip file) Source Code
Handle feedback getting from mailbox.
Requirements :
states: 'Answered', 'Unanswered'
group 'developers'
type 'Spam'
Set the state to 'Answered' if a new comment is posted:
Issue becomes answered if a new comment posted
SPAM issues become answered
Assign an issue to the author of the last 'developer group' comment
Comment Won't Fix State (download zip file)
Source Code
Require adding a comment when changing state to Won't fix.
Require adding comment when moving to Won't Fix state
Default Workflows
This table contains workflows included in YouTrack by default.
Additional Notifications (download zip file) Source Code
Notify the previous assignee when issue is reassigned.
Notify the previous issue assignee
No Comments for Verified Issues (download zip file)
Source Code
Disable adding comments to a verified issue.
No Comments for Verified Issues
New Issue Description Template (download zip file)
Source Code
Provide external reporters with a description template for New Issue.
Description template for external users
Fixing Linked Issues, (download zip file)
Source Code
Prohibit moving an issue to Fixed state if it 'depends on' unresolved issue(s).
Disable fixing issues with unresolved dependencies
Voting for Resolved Issues (download zip file)
Source Code
Disable voting for resolved issues.
Disable voting for resolved issues
Due Date Management (download zip file)
Source Code
Disable submitting an issue without a Due Date set. Notify the issue assignee about overdue issues.
Requirements : field 'Due date' is attached to project
Disable submitting an issue without a due date
Notify an issue assignee about overdue issues
Deny Certain Combination of Field Values (download zip file)
Source Code
Disable a certain combination of field values.
Denied Combinations
Notify Reporter To Approve Fix (download zip file)
Source Code
Send a specific notification to the reporter to approve the fix.
Introduce State life-cycle including reporter verification.
Send a notification to the reporter to approve fix
State life-cycle with verified by reporter value
Fix Version and Fixed State (download zip file)
Source Code
Require Fix Version value for Fixed state.
Set an issue state to Fixed when Fixed Version is added.
Require Fix Version value for Fixed state
Set Fixed state on specifying Fixed in version
Set Assignee to Subsystem Owner (download zip file)
Source Code
Set subsystem owner as assignee for new issues when subsystem is specified.
Set subsystem owner as assignee for new issues
Time Management (download zip file)
Source Code
Change issue state in time automatically.
Notify an issue assignee, project lead or subsystem owner when issue life-cycle is violated.
Requirements :
subsystem 'Support'
state 'Overdue'
state 'Wait for reproduce'
state 'Approved'
Time Management for State field
Fix in Build Management (download zip file)
Source Code
Clear Fixed in build value when issue becomes unresolved.
Copy Fixed in Build value from duplicate.
Set Fixed in Build value for duplicate when it's specified in the main issue.
Clear Fixed in build on issue unresolve
Copy Fixed in build to duplicate from the main issue
Copy Fixed in build to duplicates when it is set in the main issue
Fixed in Build for Won't Fix (download zip file)
Source Code
Set Fixed in build to 'Never' for 'Won't fix' state.
Requirements : fixed in build 'Never'
Set 'Never' fixed in build for 'Won't fix' state
Labels parameters
1 Comment
comments.show.hideMar 14, 2012
Vadim Gurov
I like first rule. I think it may be slightly improved - also sent notification to project lead that issue reaches 10 votes.