Forums

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

Parameters to JIRA Scriptrunner

Normann P_ Nielsen _Netic_
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 21, 2018

Is it possible to transfer parameters to a groovy script in a postfunction somehow; not via custom fields...

Methods like:

/data/scripts/thescript.groovy xxx yyy

/data/scripts/thescript.groovy?param1=xxx&param2=yyy

 

Or a groovy snippet in the UI setting some variables, and includes a file from the disk with the actual code? 

 

1 answer

0 votes
Normann P_ Nielsen _Netic_
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 21, 2018

Hm, It may be easier to use the code for a REST URL; as this can be parameterized.

And then just call the REST from various POST functions...

Normann P_ Nielsen _Netic_
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 21, 2018

hm, still would require some GUI code to make a REST call..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events