I am creating a Change request. We have 4 types of change requests. We have a requirement that for one request type, the value for the start date field for the Change should be 7 days from the creation date of the Change, otherwise an error should be displayed. Can this be done on the Create screen.
I was able to add a validator for the date scenario, but unable to add a condition for a particular request type on the Create screen.
Can anyone help me on this?
Thanks!
Hi @Mohan Rao
Instead of Condition, Use Automation Rule to fill in Start Date Field from Creation and make the Start Date Filed to show on View Screen Only.
This should suffice the requirement.
For more info on why Condition is not there while creating issue, please find the reference below
Thanks,
Pramodh
This requires the Automation for Jira addon or similar for server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mohan Rao
You can use scriptrunner validator to check this. In Jira conditions apply prior to validator and when an issue has not been created, there is no condition other than create issue permission that applies.
Here, what you need is still a validator however you can add specific conditions to when your validator runs. Scriptrunner or Powerscript (see Atlassian marketplace) provide such functionality but you need to know how to script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Exactly, why are you validating a field you are auto-populating with an error. Clarify here as it seems we are going all over the place now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like I didn't phrase my question correct.
My scenario is when we give a value in the the Start date field should be 7 days after the Change creation date. If the value entered in the Start date field in less than 7 days, it should display a error displaying a date to fill after 7 days.
In this scenario, I only need to validate this for one Change request out of the 4 Change requests. For the other Change requests we can give any date.
Let me know if my question in more clearer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mohan Rao
You question is rather similar to this one -> https://community.atlassian.com/t5/Jira-Service-Management/Custom-Date-field-validation-to-check-if-it-is-less-then-7/qaq-p/1824751#M88881
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.