how can i put a validation on a ticket transition if only meet certain condition.

Deepika singh September 30, 2021

Hi ,

I want to put a validation on a ticket that ticket can only be transitioned from "Ready TO pick" to "IN progress" if few custom fields dates(like dev complete commitment date, QA complete commitment date) are provided, otherwise ticket can not be moved to any other state.

I've applied automation in order to achieve it, however ,tickets can be moved from "Ready to Pick" to "In progess" if dates are not provided but if page will be refreshed, ticket will be moved back to "ready to pick". this is happing at page refresh..i want it to be happened without need of page refreshment.

Please help!! 

 

2 answers

0 votes
Jose Luis Gaitan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2021

Hello, @Deepika singh ;

have you tried using a workflow condition? Please follow this link, maybe it can help you:

https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/

Deepika singh September 30, 2021

I haven't tried the workflow conditions. Thanks!! 

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 30, 2021

Hi @Deepika singh 

You have to edit the workflow of the specific issue type and place two conditions joint by the logical operator of your choice (OR/AND).

  • Project Settings > Workflows
  • Click edit (pencil) on the workflow
  • Select the transition you want to insert these conditions
  • On the popup click Conditions
  • Click Add Condition
  • Click "Value Field - Allows to execute a transition if the given value of a field is equal to a constant value, or simply set."
  • Select your field and value
  • Do that for all variables you need, with the exception that instead of clicking "Add COndition" , you hover over your first initial condition and click Add grouped condition
  • After doing that, set the logical operators
  • Test it and make sure that it works perfectly!

Suggest an answer

Log in or Sign up to answer