Forums

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

Scriptrunner for Cloud simple date post validation

Shawn Mahoney March 21, 2019

I am unable to check for a date between 2 dates.  For whatever reason I am not having any luck finding this addressed anywhere and the Scriptrunner documentation for cloud doesnt seem to address it.

 

I simply want to do the following
(issue.fields.customfield_10098 >= '03/01/2019' && issue.fields.customfield_10098 <= '03/31/2019')

 

This works

issue.fields.customfield_10098 >= '03/01/2019'

 

How do you evaluate a between ?

 

 

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
March 28, 2019

Hi Shawn,

Thank you for your question.

I can confirm that the ScriptRunner for JIRA Cloud plugin is unable to perform any dynamic validation on issue forms or to restrict the transition issues as workflow validators are currently possible inside of Jira Cloud.

The reason we are unable to provide this functionality is due to the restricted functionality and API's which Atlassian provide inside JIRA Cloud, due to the fact  that Atlassian only provide a Rest API in Jira Cloud and not the same Java API that the server version contains.

You can also see more details on the differences between the cloud and server versions of the add-on in the documentation page located here.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events