Hi All,
I am trying to add some jira app user property using the REST API as per the rest api documentation on jira cloud.
curl --request PUT \ --url 'https://your-domain.atlassian.net/rest/api/3/user/properties/{propertyKey}?accountId=5b10ac8d82e05b22cc7d4ef5' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{}'
This returns the 200 and the get property also shows the property set, but the UI donot show this property added to the user.
I want this to be showcased on the UI and also use the property shown on the jira issues using the jira user property custom field.
I have tried various ways to achieve this, but did not work. Anyone achieved this.
Hello @sujit kumar ,
Good day! The user properties REST API do not appear in the Jira UI. They are mainly intended for apps and integrations, not for direct UI display.
Workaround:
You can create a custom field, then use automation to store the value in that custom field
Hi @sujit kumar
This call is not for setting information to be used in the UI in Atlassian admin.
See this article; https://support.atlassian.com/user-management/docs/update-roles-and-properties-for-jira-users/
specific; "These user properties are not the same as the user properties accessed via the REST API."
So the user properties set via the API call are not visible on a user in the Admin GUI.
Also the properties, userkey and username will be decrecated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc -Devoteam- Thanks for the details. I understand now that the api I hit were not meant for setting the properties in UI.
But are there any programmatic workarounds to set these jira app user properties on the UI.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sujit kumar
Then you would need to use automation as an example to get the created property and store it in a custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sujit,
I have clicked the request assistance button to notify Atlassian Support of this request so they can look to answer this question for yourself.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Kristian Walker (Adaptavist) , let me wait for them to get back on this.
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.