show error message on jira ticket

I have below requirement:

I have due date field on ticket creation. I want to pop up an error message if due date < current date + 5 days

That message could be on pop up window or on ticket window itself as information.

2 answers

1 accepted

This widget could not be displayed.

You just need a "simple scripted validator"...

issue.dueDate >= new Date() + 5

That will show a red message on the ticket when they try to submit.

(Nic - I ignored the popup window aspect... I don't think this needs to be client-side at all).

Yeah, I just assumed it was a dynamic request, and forgot that a validator would tell them what's wrong after the attempt to submit it.

Thank you for the help and that worked.

I have one more question - if i try to create ticket from service desk

error message is "cannot create ticket" insted of "due date isn't greated than somedate"

any idea how to change that message.

No... I haven't really looked at JSD properly. Seems like they're assuming with JSD that all end-users are too stupid to understand a validation failure message.

You can create a ticket (without service desk) at I will look into it.

This widget could not be displayed.

Groovy doesn't interact with the user like that.

To get this as the user is typing, you'll need to inject some javascript into the creation screen, so that it can dynamically work out the date and pop a message of some sort.

Do you have any example.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

573 views 25 15
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you