JIRA (3.13.3 - Windows Platform)
We would like to run an executable with parameters in a post-function, we've tried several ways, one as follows, with "WaitFor()" the workflow transitions takes a long time to complete, without "waitFor()" the workflow transition complete faster, in neither case the command run successfully.
We've tested the command.text out of JIRA, in command line, and it works well.
def command = """C:\\JIRA-Enterprise-3.13.1\\datadir\\groovyscripts\\InsertPBI.exe "http://url" "web" "$title1" "$descrip1" "$myIssue.key" "$myIssue.assignee" """ //string
Process process = command.execute()
Is it possible to do what we are trying to accomplish?
We are very grateful for script runner, it has helped us a lot, we were able to automatize many tasks with it. It's a great tool.
I'm having the same issue while trying to run an external program in a post-function using script runner (code is almost similar to yours). The external program is supposed to return a string value that will be used further in the post-function script. The program runs perfectly in groovy console (returns the expected output). However, the same program does not produce any output when run from the post-function. I even tried capturing the process output (consumeProcessOutput) but no luck!
It would be great if you can advise on how did you fix your issue.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events