Forums

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

How do I run a js script when performing a transition in a Jira request?

Alexey Gusev
Contributor
November 28, 2023

I have a Workflow in Jira, there is a transition in this workflow. I want some js code to be executed when the user performs this transition.

As far as I know, it is not possible to configure this using standard functions or using the functionality of plugins

All my attempts to create my own plugin end in failure, do you have any ideas how to do it?

Jira Server ver. 9.4.3

1 answer

0 votes
Asha Goyal
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.
December 4, 2023

Hello @Alexey Gusev 

You can try Script Runner Plugin for executing your own Script. If needed, please use one-month free trial version.

Please accept the ans if this helps.

Thanks

Alexey Gusev
Contributor
December 5, 2023

@Asha, thank you for your response.

Yes, we actively use the functionality of the ScriptRunner plugin in our workflows.

But as far as I know, we can only write scripts in Groovy, not JS.

Do you have an example of usage that you can share with me?

Bobby Bailey
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.
December 5, 2023

Hi @Alexey Gusev , 

Could you give a little more detail about the JS you would like to run? It would help to understand what you need to achieve.

Kind regards, 

Bobby

Suggest an answer

Log in or Sign up to answer