JIRA ADMINISTRATION > Issues
in the banner.
Then, locate the WORKFLOWS
section and click on Workflows
.
While working with customized/complex workflows, it can be convenient to restrict a transition depending on the status of a linked remote artifact.
A simple use case could be, a Feature
issue cannot be started (changed from TO DO
status to IN PROGRESS
) until
the associated requirement is in Approved
status. To those who are not familiar with this type of validations, this can be configured in
Jira with Workflow Validators.
To configure the OSLC Property Match validator in a workflow transition:
OSLC Property Match Validator
and click the Add
button.Add Parameters To Validator
page, select the Link Type
over which to apply the validator.Pass Criteria
field, select whether All
, at least One
or None
of the linked artifacts must meet the validation to allow the transition.OSLC Property
field, type the name (case insensitive) of the linked artifact property to evaluate.OSLC Value
.Add
button to save the new validator.Back in transition configuration page, do not forget to click on the Publish
button to properly apply the changes.
Add, remove or update the validator, as you need, following the standard Jira procedures.
The name of the OSLC property to use is defined on the OSLC Remote Application. You may have to contact the project administrator of the remote application to request the property name to use.
Here are some of the most used property names for the validator:
status
- The status of the linked artifact (e.g. Draft
, Approved
)
hasWorkflowState
in the case of IBM Engineering Test Management (ETM)priority
- The priority of the linked artifact (e.g. Major
, Critical
)
hasPriority
in the case of IBM Engineering Test Management (ETM)Business Rule | Validator configuration |
---|---|
All “implemented by” requirements are approved allowing a transition in Jira for “In Progress” |
Link Type = Implements Requirement Pass Criteria = All OSLC Property = status OSLC Value = Approved |
All “related change requests” are closed allowing a transition in Jira to “Closed” |
Link Type = Related Change Request Pass Criteria = All OSLC Property = status OSLC Value = Closed |