Forums

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

How can we put a condition in Create screen for Change request.

Mohan Rao October 1, 2021

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!

 

 

3 answers

2 votes
Pramodh M
Community Champion
October 1, 2021

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

https://community.atlassian.com/t5/Jira-questions/Why-I-can-t-add-a-condition-to-the-Create-Issue-transition/qaq-p/1456871

Thanks,
Pramodh

Jack Brickey
Community Champion
October 2, 2021

This requires the Automation for Jira addon or similar for server.

Like Pramodh M likes this
2 votes
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2021

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.

Mohan Rao October 2, 2021

Can I use Automation rule and add an error message when a value for  Start date field is entered less than 7 days of Change creation date.

Pramodh M
Community Champion
October 2, 2021

You are creating Automation rule to automatically fill in the field. Why the error message?

Like Ismael Jimoh likes this
Ismael Jimoh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2021

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.

Mohan Rao October 3, 2021

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events