Forums

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

Validator in Transition based on Confluence page

Manish V October 18, 2020

Hi,

We need to implement the following rule-

- Automate the process of not allowing JIRA status to be moved to “In Review”, if Last modified on a Confluence is greater than 7 days OR Confluence page is empty.
(The link of the Confluence page will be present in a custom field called "KnowledgeBase")

Hence,
The logic of the Validator in the transition "In Review" needs to be-

1) Read the content in the field "KnowledgeBase" (Which contains the URL of the Confluence page)
2) Check the last modified date of the page
3) If the last modified date of the page is greater than 7 days, return false, else return true

The JIRA and Confluence that we are using is hosted on Server and JIRA and Confluence are connected.
We use the Scriptrunner plugin too, so if any solution available via scriptrunner is available, that'll work as well.

Please let me know if more info is required.

Thank You!

Best Regards,
Manish

0 answers

Suggest an answer

Log in or Sign up to answer