I'm looking to see if there is any code that can be applied to a form that would restrict users to its submission if it's less than 30 days from the date of the event. Is this possible within Jira?
Hi @Steven Walls ,
Welcome to the community!
You can't restrict the submission, but you can immediately decline the issue. This is more useful (at least, I think it is) because you can also provide a comment why the request is declined.
I would also add a clear text stating that people should not submit issues if it's less than 30 days from the date of the event.
Regards,
Rudy
Thanks for the welcome Rudy! Is there an automated way to decline the issue? I have a text stating that requirement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure you can, you should create an automation in your projects which looks like this:
You should change the first condition, to the requesttype/issuetype people create. And change the transition to, to the correct status.
Change {{issue.duedate}} to the field name you have for the date. If it is called 'event date', then change the smart value to {{issue.fields.event date}}
You also want to put in your own comment, but that one is quite obvious.
Last, if the event date is not mandatory, you should add a condition after the first condition, like {{issue.duedate}} is not empty
Good luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Rudy; I'll give it a try. I'm a complete novice in Jira, but I'm determined to make it work for my project.
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.