What is the problme with this script runner plugin it is not getting downlaoded?

I tried to downloal the SCRIPT RUNNER plugin from my jira application and through net also but i amunable to downlaod this plugin.

I amgetting this message "Script Runner" cannot be installed by the UPM. Visit the plugin homepage to read the installation instructions:

please help

Nagmani

3 answers

1 accepted

2 votes

Guess what! It can't be installed by UPM. Visit the plugin homepage: https://studio.plugins.atlassian.com/wiki/display/GRV/Script+Runner#ScriptRunner-Installation to read the installation instructions.

And you gave the plugin a downvote too... brilliant.

One reason why there should be an option to challenge the down votes on the plugin exchange!

Well you can report as inappropriate... I did that, we'll see if they remove it.

I have gone through the link you have mentioned above..but still I have a problem and that is the script runner plugin is in zip format and you mentioned that .jar format (groovy-runner.N.jar) of groovy runner need to be downloaded and placed in WEB-INF/lib .so how do i do that as .zip format is available not the .jar format.

I kept the zipped format in the same folder (as .jar was not available in your link) but it is not working.

Need your help.

You must be using Internet Explorer and not a proper browser? If so just rename it back to .jar.

Thanks a lot jamie..It was because of IE..Gr8 help..:)

I have gone through the the installation guide and installed whatever is required for following code to run on JIRA but Still I am not finding the correct way to use this code as I didn't get any additional post function under workflow. Can you help me with this code which you have posted against an answer to creation of automatic pages in confluence for any issue in jira under the same project....This is the code you have mentioned

package examples

import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator

def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL("http://confluence.acme.com"))
def token = service.login("admin", "password")
def page = service.getPage(token, "MYSPACE", issue.summary)
page.content = issue.description
service.updatePage(token, page)
 
I am very  new to JIRA and confluence so don't have much idea of how to implement this code....
 

I'm afraid I don't have time to walk you through it unless you're willing to self-help. As I said in the other thread, it sounds like you are better-off waiting for a non-progamming solution.

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the baove code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the above code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

Mizan Community Champion Jan 23, 2012

Hi ,

Are you able to see any output when you simply return some value, like inserting a code return true in the area provided for your script by selecting the groovy radio button. ?

just to check whether you did this step properly.

Download Groovy. Copy <GroovyDistro>/embeddable/groovy-all-n.n.n.jar to WEB-INF/lib. Groovy 1.7.10 recommended.

yes I have tested this script post function for a sample code returning a value and it worked properly but for the code of my interest(which I have posted) its showing above error...

Thanks for your concern

Jamie,

Sorry about the downvote,I shall revise the voting shortly. I tried implementing the code but encountered 404 error on script runner while accessing the URL defined on

def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1"))

I have confluence on my local system & it is on same port. I access it thru URL http://localhost:8090. Is there anything I need to enable on confluence to expose soap-axis? I have enables remote API access already.

Your help is very much appreciated.

You probably need to remove the /confluence if you've installed it yourself.

Double check you can browse to http://localhost:8090/rpc/soap-axis/confluenceservice-v1?wsdl

and then try http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1?wsdl

Use whichever works, remove the ?wsdl.

If that works check that jira is not using a proxy server, ie you have not set one up in your setenv.sh. Also try using the FQDN of your host instead of localhost.

I have resolved the above issue as such..Thanks for your help and this plugin is really of great work..

Now I am facing one problem that is whenvever I run the above code in jira with all modifications required I get following error..

"javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"

I have changed the url to the one of confluence of my srever still the problem exists..

any suggestions from your side.

I think the problem is in the line

def token = service.login("admin", "password");
as I have debugged above lines individually and the message: "javax.script.ScriptException: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages"
comes after returning token value after this code.


Please Help out to get any feasible solution.

This works for me:

import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator

def locator = new ConfluenceSoapServiceServiceLocator()
def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1"))
def token = service.login("admin", "admin")

def page = new RemotePage (
        content: issue.description,
        creator: "admin",
        title: issue.summary,
        space: "DS",
        homePage: false,
        created: Calendar.getInstance(),
        modifier: "admin",
        version: 1,
        modified: Calendar.getInstance(),
)

service.storePage(token, page)

Could of problems I had was that I had a system proxy set so localhost didn't work. And make sure you copy the jar from Bob's plugin I mentioned: confluence-soap-4.0.0.jar

I never got the error you got.

Now, could you: a) remove your downvote from my plugin and b) if you have further problems create a new thread or return to the other thread you created when I put my sample code.

Thanks jamie..and sorry for the down vote..I couldnot find the way to remove it...But that will be done soon.

And I think this code could work..Still the problem exists.

could you please contact me on my email id nagmanisinha1988@gmail.com or skype name nagmani_sinha because I really need your help as I am new to Groovy.

I don't want to leave you hanging, but I'm not going to be doing that unless I'm getting paid, and I'm not taking paid work right now. You need to start a new thread and actually include the error you are getting, and answer the questions in my comment above. I'm asking you questions so that you can help me help you.

Thanks again Jamie,

I have posted the question in new thread and need your help https://answers.atlassian.com/questions/31213/problem-creating-remote-pages-in-confluence-usin-jira-both-on-my-local-server

Please go through this and see if you could help...

I would look forward for your in that link..And I have removed the downvote too..That was just a mistake..

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

179 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you