Prerequisition
To ensure PWT workflow working properly, three custom fields have to be created.
提示 |
---|
In this example, we will choose approver from selected project roles. Please don't set 'Approver' custom field as mandatory. |
Steps:
- Add a new workflow
Log in as JIRA administrator
Click cog icon > Issues > workflow
Click 'add workflow' button
2. When user submits a JIRA issue, project roles will be selected as 'Approver'.
Click 'Create'
Click <Result> page and use project roles as 'Approver'.
提示 |
---|
The process can become too complicated if too many approvers are selected. In this page, you can limit total approver number by setting maximum project role number. Default number is 5. |
3.Configure PWT workflow
Step:
状态 | ||||||
---|---|---|---|---|---|---|
|
Status: To Do
Transition Action | Target Step | Screen | Conditions | Validations | Post Functions | Remark | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Submit |
| Workflow Screen | Only Reporter Condition | ||||||||||||||
Cancel |
| Workflow Screen | Only Reporter Condition | Update Issue Field: Set Resolution = Rejected |
Step:
状态 | ||||||
---|---|---|---|---|---|---|
|
Status:Waiting for Approval
Transition Action | Target Step | Screen | Conditions | Validations | Post Functions | Screenshot of Post Function | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Agree |
| Workflow Screen | (Unordered Approval Process) User in Approvers Field | (Unordered Approval Process) Commnet is required | (Unordered Approval Process) AGREE | |||||||||||
Reject |
| Workflow Screen | (Unordered Approval Process) User in Approvers Field | (Unordered Approval Process) Commnet is required | (Unordered Approval Process) REJECT | |||||||||||
Pass (Auto) |
| Workflow Screen | (Unordered Approval Process) Hide transition | Update Issue Field: Set Resolution = Done |
Step:
状态 | ||||||
---|---|---|---|---|---|---|
|
Status:Done