Hi,
I'm trying to add a new property with a value through a wget script.
I'm trying to run this kind of URL with no success :
http://localhost:$$$$/secure/admin/user/EditUserProperties.jspa?key=<mypropertyname>&value=<myvalue>&name=<myuser>&+Add+=+Add+
I did the autication before that, my script is working except that.
Do you have an idea ?
Maybe you are using another way ?
Regards,
Sven.
updateUserProperty action from JIRA Command Line Interface
Greath Thanks Bob.
I found also another way by Jelly using core functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Sven, Can you share the another way of doing it ? pawansonu4@gmail.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is working well too :
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:email="jelly:email" xmlns:log="jelly:log" xmlns:util="jelly:util" > <log:warn> example log </log:warn> <core:invokeStatic className="com.atlassian.jira.component.ComponentAccessor" method="getUserManager" var="usermanager"/> <core:invoke on="${usermanager}" method="getUser" var="user"> <core:arg type="java.lang.String" value="myusername"/> </core:invoke> <core:invokeStatic className="com.atlassian.jira.component.ComponentAccessor" method="getUserPropertyManager" var="propertymanager"/> <core:invoke on="${propertymanager}" method="getPropertySet" var="propertyset"><core:arg type="com.atlassian.crowd.embedded.api.User" value="${user}"/> </core:invoke> <core:invoke on="${propertyset}" method="setString"> <core:arg type="java.lang.String" value="jira.meta.myproperty"/> <core:arg type="java.lang.String" value="myvalueproperty"/> </core:invoke> </JiraJelly>
No plugin needed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.