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 ?
Out of the box, you can't do that. You need an app like JMWE, JSU, JWT or scriptrunner.
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:
And when you try to create an issue that does not satisfy the logical expression we would get the following:
You can have a free trial period for JWT.
Kind regards,
Iheb Kharab
Decadis AG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.