Jira projects don't have an end date, but it's common for users to expect a due date after which you don't want anyone to create more issues for that project. In this article we'll going to show how to solve this problem with date custom fields.
As we said, Jira doesn't have any project-date restrictions, but this is something you don't have to worry about anymore.
First of all, be sure to download Projectrak from the Atlassian Marketplace. Once it's running, access the Field Manager on the administration Jira options, where you'll find the app section, and then create a date field.
You'll find different options for the creation of different types of fields; this is the core of Projectrak (formerly Profields) and it can get a bit complex. However, in this situation we only need the one that specifies Dates.
Once the date field has been created, associate it to your Projectrak layout in the Layout Manager, just below the Field Manager. This layout must be associated with your project, and there are two places where you can do that:
Once the date field has been created, it's time to give the chosen field the desired value. In this case, it's the end date of your project.
Despite having set the end date in our project, issues can still be created there. That's precisely what we want to avoid. That's why we need a Projectrak validator:
As the screenshot shows, it's necessary to get into our project workflow, once there, select the Projectrak Script Validator.
A second validator is needed: the Projectrak Value Validator, which allows to compare values with an equal or not-equal comparator
In this case, we'll use a "greater" comparator that includes from "today" until the end-date of the project.
This script will do the work for you:
Now it's time to test all we've done.
How will you know if it's broken? By creating an issue outside the valid date ranges for the project, if the issue appears in the project, something is not working as it should. Here's the example:
Yes!!! We usually don't like error messages, but we do love this one. The same problem could also be solved with a list field with "Open" and "Close" as values, for example.