Send a web request from a SIL script

Chris Kast May 7, 2015

Is it a all possible to send a web request (GET, POST, etc.) or even send a curl command from SIL script? Thanks!

2 answers

1 accepted

1 vote
Answer accepted
Silviu Burcea
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.
May 7, 2015

Yes, it is possible, we have httpGet and httpPost routines for web requests and if you need to call the curl command, we have the system routine.

 

Docs:

https://confluence.kepler-rominfo.com/display/SIL30/httpGet

https://confluence.kepler-rominfo.com/display/SIL30/system

 

anton ronin May 13, 2016

no request body access, no payload, no SOAP

not its not possible

Silviu Burcea
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.
May 13, 2016

What are you trying to achieve, Anton? I'm sure there is a way for you, too.

anton ronin May 25, 2016

Possible with SIL system routine. Beware of problem with passing parameters with spaces.

0 votes
teilor_soares
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.
May 7, 2015

No, is not possible. I'm don't know what you want to achieve, but webhooks might be a solution for you: https://confluence.atlassian.com/display/JIRA/Managing+Webhooks

Cheers!
Teilor

Chris Kast May 7, 2015

Basically what I want to do is, on issue create, look for string format in the description (i.e. via regex) and if it matches, send a web request that contains info from that string.

teilor_soares
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.
May 8, 2015

I believe you could do this using ScriptRunner, but I'm not sure how. I found some examples here https://answers.atlassian.com/questions/314819/making-a-rest-call-using-script-runner

Silviu Burcea
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.
May 8, 2015

Teilor, he's already using JJupin and JJupin can solve his problem. Personally, I won't try a new plugin that might solve a problem if I already have a solution in my own toolbox.

Suggest an answer

Log in or Sign up to answer