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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,125
Community Members
 
Community Events
176
Community Groups

Change workflow - Change type and submission date to allow start time variables

i want the change type and submission date fields while creating a new change ticket to allow appropriate change start date.

 

if the change type is normal and it is being submitted today, i want the change start date field to have a restriction which will not allow any value under 7 days.  is this possible with any custom fields or scripting in jira ?

2 answers

Hi @Vamsi Krishna Panthulu 

Out of the box, you can't do that. You need an app like JMWE, JSU, JWT or scriptrunner.

Hi @Vamsi Krishna Panthulu

You can perform such restrictions using our app Jira Workflow Toolbox,

Where you can add a Logical validator in the create transition with the following expression:

%{issue.issueType} = "Task" and datePart({issue.dueDate}, LOCAL) = datePart({system.currentDateTime}, LOCAL) ? datePart({issue.dueDate}, LOCAL) >= addDays({system.currentDateTime}, 7, LOCAL) : true

You should adapt the expression to your needs, I have used due date and issue type task instead.

You can also add an error message to be displayed for an easy understanding of what is blocking the transition, see the screenshot below:

Screenshot 2022-11-30 at 12-01-33 Update Workflow Transition 'Logical validator' Validator - Your Company Jira.png

And when you try to create an issue that does not satisfy the logical expression we would get the following:

Screenshot 2022-11-30 at 11-56-00 Create Issue - Your Company Jira.png

You can have a free trial period for JWT.

 

Kind regards,

Iheb Kharab

Decadis AG

Suggest an answer

Log in or Sign up to answer