Forums

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

Issue transition

Vishnu
Contributor
October 26, 2022

Hello all,

Is it possible to add a date field to an issue and once it is past that date it cannot move forward to another status.
Thanks in advance

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
October 26, 2022

Hello @Vishnu 

Can you tell us more about the problem you are trying to solve?

In general, you can use a Validator (in Company Managed projects) or Restrictions (in Team Managed projects) on a workflow transition to check values in an issue and prevent the transition from happening based on what you find.

https://support.atlassian.com/jira-cloud-administration/docs/use-workflow-validators-for-company-managed-projects/

https://support.atlassian.com/jira-software-cloud/docs/available-workflow-rules-in-team-managed-projects/

Vishnu
Contributor
October 26, 2022

Hi Trudy, 

Thanks for your quick reply.

So what I'm trying to achieve here is - I want to add a field (date picker) and based on the value given to that field I want to block the issue transition.

Let X be a date picker field, and the date is picked as 26-10-2022. If this date is passed, the user should not be able to transition the issue.

Trudy Claspill
Community Champion
October 26, 2022

What would prevent the user from changing the date in that field so that they could then transition the field?

What is the core problem you are trying to solve? Why are you trying to block status changes based on a date?

Like Bill Sheboy likes this
Vishnu
Contributor
October 27, 2022

we are looking to add a 'quote expired' status to the workflow. When a issue is created they will need to add the 'expiry date' for the quote. The expiry date field cannot be edited once the issue is created.

Once the date added has passed whilst sitting on 'customer approval' status it can only then move to the status ' Quote expired'.

Trudy Claspill
Community Champion
October 27, 2022

Is this for issues in a Company Managed project or Team Managed project?

For a Company Managed project you can use the Date Compare Validator.

Screen Shot 2022-10-27 at 10.24.04 AM.png

 

It does not appear that the Restrict Transition options available in a Team Managed project will support this. In that case it has to be compared to a specific date; you can't compare it to an expression like now.

I'm not sure if there are apps that extend the workflow capabilities for Team Managed projects.

Vishnu
Contributor
October 28, 2022

Thanks for your answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events