YouTrack InCloud 2017.2 Help

Requirements

Requirements contain a set of entities that should be present on a given YouTrack instance for the rule to work as expected. Whenever one or more rule requirements are not met, corresponding errors are shown in workflow administration UI and the rule is not executed until all problems are fixed. This is a 'safety-net' function of requirements. A second function is a 'reference' one: each required object is plugged into the `context` object, so that you can reference entities from inside your context-dependent functions (like an `action` function). There are two types of requirements: project-wide and system-wide. Project-wide requirements contain a list of custom fields to be attached to each project which uses the rule as well as some values from fields value sets. System-wide requirements contain a list of other entities that should be present on a given instance: users and user groups, projects and issues, tags and saved searches.

requirements: { P: { type: entities.EnumField.fieldType, name: 'Priority', M: { name: 'Major' }, Normal: {} }, ImportantPerson: { type: entities.User, login: 'superadmin' }, OurTeam: { type: entities.UserGroup, name: 'integration-team' }, Int: { type: entities.Project, name: 'Integration' }, Ref: { type: entities.Issue, id: 'INT-483' }, ToBeReleased: { type: entities.IssueTag, name: 'To be released' }, Untested: { type: entities.SavedQuery, name: 'Not tested yet' }, Depend: { type: entities.IssueLinkPrototype, outward: 'is required for', inward: 'depends on' } }

Last modified: 9 August 2017