Datastat Automation
ACTIVE AUTOMATION
1. Global
WHEN: Issue Created
IF: Issue Type is "BUG"
THEN:
- Issue field priority is "Highest"
WHEN: Transitioned from "Open", "ToDo", "InProgress", "Backlog", "Discussion", "Documentation" to "ForTesting"
IF: Assignee is not empty
THEN:
- Add comment to issue: {{issue.assignee.displayName}} was assigned before moved to ForTesting
- "Copy Assignee" from "Current issue" to "Previously assigned"
- Assign issue to "Unassigned"
WHEN: Transitioned from "ForTesting" to "Open", "ToDo", "InProgress"
IF: Assignee is empty
THEN:
- Add comment to issue : {{initiator.displayName}} moved task back to {{issue.status.name}}
- Copy "Previously assigned" from "Current issue" to "Assignee" and delete "Previously assigned"
- Add Label "Returned"
WHEN: Transitioned from "ToDo", "Open", "InProgress", "ForTesting", "Testing" to "Done" or "ForMerge"
IF: Previous Assignee is empty
THEN:
- Copy "Assignee" to "Previous Assignee"
2. Specific projects
WHEN: Transitioned to "Discussion"
THEN:
- Labels = "Discussion"
- Priority = "Lowest"
3. Automatic Transitions (GitHub)
WHEN: GitHub Branch created with Jira Issue Key in the name
IF: Task status is grey (To Do, Open, Discussion, Backlog)
THEN:
- Transition issue to "InProgress" status
- "Copy Assignee" from "Current issue" to "Previously assigned"
WHEN: GitHub Branch Pull Request is created with Jira Issue Key in the name
IF: Task status is "InProgress"
THEN:
- Transition issue to "ForMerge" status
- "Copy Assignee" from "Current issue" to "Previously assigned"
- Assign issue to "Unassigned"
WHEN: GitHub Branch Pull Request is merged with Jira Issue Key in the name
IF: Task status is "ForMerge"
THEN:
- Transition issue to "ForTesting" status
4. WebHook Automatization
WHEN: GitHub Branch created with Jira Issue Key in the name
IF: "Assignee" is empty
THEN:
- Assigne issue to person who created the branch
WHEN: Reviewer is added to GitHub Branch Pull Request
IF:
"Assignee" is empty
"Status" is "ForMerge"
THEN:
- Assigne issue to the reviewer of the pull request
WHEN: Clockwork log is added with checkbox BILLABLE
IF:
{{smart values}} condition, {{webResponse.body}} contains key=m6t3qavr, value=true
"Labels" contains none of "BILLABLE"
THEN:
- Add Labels = "BILLABLE"