Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Block transition if Dev- subtask description is not filed

Muhammad_Arsalan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 28, 2024

Hi everyone, we have specific requirement where we need to Block transition if Dev- subtask description is not filed, means putting it back to In development again? (parent back to In dev)

 

Until now I have tried below config/automation rule with no success.

  • Trigger: Issue Transitioned:

    • Set the trigger to Issue transitioned.
    • Configure it to trigger when the parent issue transitions from ‘In Dev’ to ‘In QA’.
  • Branch: Target Sub-tasks:

    • Click New action > Branch rule / related issues.
    • In the dropdown, select Sub-tasks.
    • Add a Condition to filter the sub-task with the specific name "DEV - sub task 1".
    • Use Issue fields condition:
      • Field: Summary
      • Condition: Contains
      • Value: DEV - sub task 1.

        Condition: Filter for Specific Sub-task "DEV - sub task ":

  • Condition: Check if the Description is Empty:

    • Now, add another Issue fields condition to check if the Description of this sub-task is empty.
    • Use Issue fields condition:
      • Field: Description
      • Condition: Is empty.
  • Branch: Target the Parent Issue:

    • Click New action > Branch rule / related issues again.
    • Select Parent issue. This ensures that any further action will apply to the parent issue.
  • Action: Transition the Parent Issue Back to "In Dev":

    • Add a Transition issue action.
    • For: Leave the default (as the branch already targets the parent issue).
    • Transition to status: Select In Dev.

 

1 answer

0 votes
Manoj Gangwar
Community Champion
September 28, 2024

Hi @Muhammad_Arsalan

 Welcome to the community!

if you have script runner or jmwe plugin then you can use the conditional post function on the workflow to transition the parent based on the field condition. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events