Forums

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

Run SIL script at Start Progress ?

Chris Chambers
Contributor
August 3, 2018

Is it possible to trigger a SIL script when someone clicks the Start Progress button on an issue?

I'd like to set/update the Start Date field to match the time when Start Progress is clicked.

If SIL isn't the way to go, is there an alternative?

 

thank you

3 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
August 4, 2018

Hello,

The Power Scripts add-on can do it easily.

You have to create a post function for the Start Progress transition and put there the following scripts:

#{Start Date} = currentDate();

You can find more info on post functions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forpostfunctions:

Alexey Matveev
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.
August 6, 2018

When you setup Approvals you choose, which transitions must be executed in case the issue is approved or rejected. In the end transitions, which you provided, will be execute. I think in your case it is the Start Progress transition.

0 votes
Iago Docando
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.
September 18, 2018

You don't need to use any script to solve this one. This can be easily obtained through postfunctions. I think you might need some free plugin to enhance the postfunction options, not sure if this is a vanila feature but is not difficult to locate the most popular free plugins.

The postfunction needed would be "edit cusstom field" and you'll set it to %%CURRENT_DATE_TIME%% or something like this.

If the field you want to automatically update is not a custom field you will still need to add yet another postfunction: "copy field value" or something similar (don't remember the exact name).

Hope it helps

0 votes
Chris Chambers
Contributor
August 6, 2018

Thanks.  I am using Power Scripts, and I think I was confusing the Approval with the Start Progress button.  i.e. the Start Progress button isn't available until after the request has been approved.  So, I assume, clicking Approve isn't actually a transition to the next status (though the status appears to update), and the Approve button is replaced by the Start Progress button (the actual name of the transition).   Clicking Start Progress is the actual transition?

Suggest an answer

Log in or Sign up to answer