It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
Answer accepted

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).

nic Community Leader Jun 03, 2014

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 https://jamieechlin.atlassian.net/browse/GRVand I will look into it.

0 votes
nic Community Leader Jun 02, 2014

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
Community showcase
Posted in Jira

Calling all Jira Cloud users! Give us feedback on our exploration of a new navigation.

Hi everyone! My name’s Matt and I’m a product manager at Atlassian. I work in the navigation & findability space for all our Jira Cloud products. We’ve been working on trying to improve the exp...

900 views 14 12
Join discussion

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you