Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

date setting

fatoumata Sall August 27, 2019

 

Hello 

In my service desk  , I have  a field  to put the last date to resolve the problem   how to block on the calendar the day preceding today day .

 

thank a lot 

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2019

Hi fatoumatasall.

In order to block the customer to choose a date before today, we can add a validator in the workflow.
I tested many possibilities and the only one that works is the one that will allow them to choose the next day.
So, if they are creating the ticket now, they will be able to set the last date to resolve to August 28.
I tried the combinations to allow today's date as well, but once I do this, somehow older dates are also allowed.

The steps to do this are:

1 - Go to the desired project > Project settings > Workflows.
2 - Click on Screenshot 2019-08-27_16-44-12-869.png for the desired issue type.
3 - Select the diagram mode > Select the "Create issue" transition.
4 - On the right side, click on Validators.

Screenshot 2019-08-27_16-39-36-635.png

5 - Click on "Add validator" > Date compare validator.
6 - On this page, you will select the custom field you need on "Date", the Condition will be ">" and "Compare with" you need to select "Expression" and add "now" the same as the screenshot below:

Screenshot 2019-08-27_16-43-53-090.png

7 - Click on Add.
8 - Publish draft > Select to save a backup copy > Publish.

Hope this helps!
If you have any other question, please let us know.

Regards,
Angélica

fatoumata Sall August 28, 2019

hi Angelica 

 

Thanks for your Help !! but  I  do all step but it does'nt work .  DO I Forgot anything ?

 

Capturejira.PNG

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2019

I see that your Jira is in French, so please edit the validator and add the expression "now" in French and test again. 

fatoumata Sall August 29, 2019

HI Angelica 

I tried it again ,  do i did  a mistake anywhere

 

 Thanks Jira datesetting.PNG

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

The configuration is correct, but I think it's something to do with the language. When I added in English it worked normally, but when I did the same using French, I can't select any date, it shows the error. Is that what is happening in your instance? 
Can you test using Jira in English just to check if it will work?
When I made the setting in English and then changed Jira language to French it was working, but if I add the validator all in French, it does not work.
Please, follow the steps of my first response and add "now" and test creating a ticket. Then, change the language back to French without changing anything on the workflow and test again.

fatoumata Sall September 11, 2019

hello 

I work  in a production environnment can I change the languages  without any problems for customers .

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2019

Yes, this change will only affect your profile. You can change by clicking on your Profile picture > Personal settings (or just Settings) > Change the language > Save. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events