Workflow condition is not working. The Transition does not appear even if the condition is true

Carla Pasquali January 15, 2021

Hello, hope you are all doing well

 

I am following the example mentioned on this page (https://community.atlassian.com/t5/Jira-questions/Dont-show-a-transition-if-it-is-beyond-7-days-of-resolution-date/qaq-p/297625) to setup a Workflow condition but it's not working for me.

I would like to enable the "Reopen" Transition only for issues that were resolved in the last 7 days. For anything older than that, the Transition should not appear.

This is how I have set up this condition in my workflow:

Screen Shot 2021-01-15 at 5.16.50 PM.png

However, even when the condition is true for an issue, the Transition does not appear for the customer in the Support Portal.

I have validated through a query in Jira that "resolved > -7d" brings all issues that were resolved in the last 7 days.

 

Any ideas on what I should look at to get this to work?

Many thanks!

2 answers

1 accepted

0 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 20, 2021

Hello @Carla Pasquali

Thank you for reaching out.

The value field condition does not work against relative time as "-7d" when using a date field. We have a suggestion created to allow this possibility:

As an admin, I'd like to set a date comparison condition in the workflow as a JQL search 

For now, the only way to "Block" a transition from being made if the date value is not higher than a relative time would be to use the "Date compare validator". These would be the steps:

  1. Select the relevant project > Project settings > workflow
  2. Click the Pencil icon to edit the relevant workflow;
  3. Select the relevant transition, then click Validators;
  4. Click Add Validator, select Date Compare Validator, then click Add;
  5. Configure the validator as needed, then click Add;
  6. Don't forget to publish the workflow draft

Screen Shot 2021-01-20 at 15.07.57.png

Additionally, feel free to vote and watch the suggestion to increase its priority and also receive notifications about any updates.

Let us know if this information helps.

Carla Pasquali January 21, 2021

Hi @Petter Gonçalves ,

 

Thanks, it works now but only if the Transition happens in the Issue View in Jira. If the customer tries to Transition the same issue in the Customer Portal the Transition still goes through.

 

I'll vote for the suggestion and hopefully it'll get implemented soon!

Thanks

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 15, 2021

Hi @Carla Pasquali 

Welcome to community! I believe on the workflow there's a "All of the following condition or Any of the following conditions" on the transition setup, what option do you have selected "All" or "Any"? because either option will determine the action that's taken by the condition.

Carla Pasquali January 18, 2021

Hi @Prince Nyeche ,

Thanks for responding! I only have one condition in this transition in my workflow so I am not sure if that's the case. 

Here is a screenshot:

Screen Shot 2021-01-18 at 10.24.25 AM.pngI would assume that since I only have one condition I could pick any "All of the following condition or Any of the following conditions" ? Or is there any different in the above options even if I have just one condition?

Thanks!

Suggest an answer

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

Atlassian Community Events