Forums

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

Behaviour to limit a date field

Rodrigo L May 5, 2023

Hello, everyone.

I'm new to scriptrunner and I have to develop a project in jira at work.

 

I have an issuetype in which I have a date field. I have to restrict the choosable date based on a the following idea.

 

In my work, we have an idea that one cycle starts on 21/XX/YYYY and ends on 20/(XX+1)/YYYY.

For example, the day 23/02/2021: it is in the cycle 21/02/2021-20/03/2021.

 

For my restriction, I have to verify in which cycle I am today: for example, 05/05/2023 give my [21/04/2023 - 20/05/2023].

Then, the choosable dates should be anydate from 21/04/2023 to the future.

So, for today, the possible days should be 21/04/2023 to future.

 

Is it possible to do something like that at scriptrunner?

 

Thanks

 

1 answer

0 votes
Bryan Spangler March 28, 2025

we are using service management for our helpdesk. I am looking at the same type of thing currently. I have a ticket type for our office moves and we want the only available dates for that move to start a week after the ticket is being created. I have some ideas in the area of blocking the ticket creation if the date is before that week mark but I would like to just not make that week an option at all. I know this post was a while ago. Did you happen to figure out a way to do this?

Rodrigo L March 28, 2025

Hello! I have not figured out a way to prevent the forbidden dates to appear. I've restricted the creation based on the date.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events