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:
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?
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:
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:
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!
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:
I 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?
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