Hello fellow Codebarrel users,
I have an issue trying to access the custom user key / value that i've added to User Properties in JIRA.
I have a key called <slackId> and the value (@someSlackName), but unable to access this value from the Automation for JIRA tool.
I have researched all the possible solutions mentioned here:
But could not get it to work.
https://<My JIRA Cloud>.atlassian.net/rest/api/2/user/properties/slackId?username=adminUserName -> would give me a 404 message
The way you set the properties:
The user properties that can be set via the user profile page and the user properties exposed in the JIRA REST API are actually two completely different storage mechanisms, which explains why user properties set from EditUserProperties.jspa are not returned when you call the REST API.
Any help will be greatly appreciated.
Aleks is spot on. The properties set through the UI are considered a legacy feature.
In Server these can be accessed via:
Unfortunately Jira deosn't expose these via REST so we can't access them in Cloud.
The new way to do this is to set the User entity property. The best docs to follow are:
This is the curl command you would use:
curl -X PUT -H "Content-type: application/json" https://<My JIRA Cloud>.atlassian.net/rest/api/2/user/properties/slackId?username=adminUserName -d '"<the slack id"'
(You will need to ensure that you authenticate the request)
You can also store JSON objects if you need more rich information stored.
You can the access it via:
There is also an add-on provided by Atlassian labs that allows you edit the entity properties in the UI - https://marketplace.atlassian.com/plugins/com.atlassian.connect.entity-property-tool.prod/cloud/overview
Hope this helps.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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...
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!
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