Skip to main content

Datastat Automation

ACTIVE AUTOMATION

1. Global

On BUG created issue put "highest" priority

WHEN: Issue Created
IF: Issue Type is "BUG"
THEN:

  • Issue field priority is "Highest"
Remove assignee when issue moved to status "ForTesting"

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"
Add assignee when issue moved to "Open", "ToDo", "InProgress"

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"
Add previous assignee when issue moved to status "Done" or "ForMerge"

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

Add label "discusssion" and set "lowest" priority when moving to status "Discussion"

WHEN: Transitioned to "Discussion"
THEN:

  • Labels = "Discussion"
  • Priority = "Lowest"

3. Automatic Transitions (GitHub)

On GitHub Branch creation

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"
On GitHub Branch Pull Request

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"
On GitHub Branch Merge

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

On GitHub Branch creation

WHEN: GitHub Branch created with Jira Issue Key in the name
IF: "Assignee" is empty
THEN:

  • Assigne issue to person who created the branch
On GitHub Pull Request Reviewer insertion

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
Clockwork tick BILLABLE checkbox

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"