Skip to end of metadata
Go to start of metadata

Notify reporter to verify an issue

Implemented default workflow: 'jetbrains-youtrack-notifyReporterToApproveFix'. Not auto-attached by default. This workflow contains two rules, which both show how the use case can be implemented via Workflow:

Use case:
Originally, the use case is taken from the submitted request JT-7821.

It would be great if an issue reported by a user could be approved by the reporter.

  1. User A creates an issue.
  2. The issue is fixed, and status is set to fixed (and is built and deployed by TeamCity)
  3. When the ticket is deployed (in a test/stage or production environment) the status is set to "Pending verification in Test/production" (either manually by the developer or automatically based on some status information from TeamCity perhaps) and a notification is sent to User A.
  4. User A then test the issue in the suitable environment and determines that
    1. it is fixed and approves the issue and it is closed (or has a state of approved or something like it)
    2. it is still not working, and is returned to the developer as "not approved" (or project lead or something).

Send specific notification to reporter to approve fix

Implemented stateless rule:

When issue's updated, check if state just became 'Pending verification'. If true, then:

  • Send notification to reporter
  • Set reporter as Assignee for the issue.

State lifecycle with verification by reporter

Implemented statemachine rule:

This sample state-machine rule defines the following transitions for the issue's 'State' field:

  1. Initial state is Submitted
  2. From initial state issue can be transmitted to the following states only:
    • On event (action) Open the state's value should be set (should transit) to 'Open' state.
  3. From the 'Open' state only the following transitions are allowed:
    • On event (action) Fix the state's value should be set (should transit) to 'Fixed' state.
  4. When entering the 'Fixed' state, a YouTrack should force user to set 'Fixed in build' field.
  5. From the 'Fixed' state only the following transitions are allowed:
    • On event (action) Send for verification the state's value should be set (should transit) to 'Pending for verification' state.
  6. When entering the 'Pending for Verification' state, set issue reporter as Assignee for the issue, and send him specific notification to approve the fix.
  7. From the 'Pending for Verification' state, only the following transitions are allowed:
    • On event (action) Approve the state's value should be set (should transit) to 'Verified' state.
    • On event (action) Don't approve, the issue should be assigned to the project's leader, and the state's value should be set (should transit) to 'Not approved' state.
  8. From 'Not approved' state the issue can be only transited to the 'Fixed' state upon action 'Fix'.
  9. From the 'Verified' state, no further state transitions allowed.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.