Forums

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

Conditional Post Function Groovy Script

Jason Campo March 28, 2020

When a new issue is created, I want to auto transition the issue in the workflow ONLY if a custom date field named <start date & time> is < 3 days from <Today's date> which would force a custom pop up screen on the transition. 

I'm thinking I'd use the Post Function "Transition Issue" with a conditional Groovy Script as it asks. However, I have no idea how to write the Groovy Script.

**I do not have Script Runner**

 

2 answers

0 votes
Robert Dzido _Almarise_
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.
March 28, 2020

Hi,

If you don'thave scripting skills you can use Workflow PowerBox's Condition Based Post-Function. It shall solve your issue.

If you have scripting skills it's easy to achieve with ScriptRunner.

You may also use XML Modifier to transtions and set it "auto=true" directly in XML file

0 votes
Nic Brough -Adaptavist-
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.
March 28, 2020

You'll need to tell us what other app you have to provide scripted post-functions if you have not got ScriptRunner.

Suggest an answer

Log in or Sign up to answer