Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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.

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 Community Leader Jan 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.

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you