Hello,
I have a script to import users to Jira from Jira Jelly Script File. When i run this script from Jira Runner this finished succesfully, but when i run this script as a service from our Jira aplition we receive an error like this. Can you help me?
Error Message:
{code}
<Error action="AddUser">
<TagContents>(CreateUser(username=jesus.perez)(email=jesus.perez@groupalia.com)(password=jesus.perez)(confirm=jesus.perez)(fullname=Jesus Perez Batlles))</TagContents>
<ExecutedAs>user=null</ExecutedAs>
<ErrorMessage>
Tag CreateUser requires (jelly.username) variables to be set in the Context
</ErrorMessage>
</Error>
{code}
XMLJelly script: /opt/jira/atlassian-jira-enterprise-4.2.4-b591-standalone/atlassian-jira/WEB-INF/classes/services/com/atlassian/jira/service/services/jelly/entrada.xml
{code}
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.JiraTagLib">
</JiraJelly>
When you run the Script via the script runner you provide a user context (since you are logged in). That is not true for the running service. So you have to login first in your Jelly Script.
http://confluence.atlassian.com/display/JIRA/Jelly+Tags#JellyTags-jiraLogin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.