I made all steps to add a custom property to my user in order to use it in automation:
https://confluence.atlassian.com/cloud/update-roles-and-properties-for-jira-users-744721647.html
I tried using the {{assignee.property.blabla}} smart value but it didn't work.
I also found some reference about legacy properties called {{assignee.legacyProperty."jira.meta.blabla"}} but it didn't work.
Is there any way to solve this without using the REST API to set the property?
Hi @Rhuan Barreto ,
Developer from Automation here.
User values in the Jira UI are actually those legacy properties you mentioned with {{issue.reporter.legacyPropeties.customValueHere}}, but we currently don't support those in cloud due to a lack of APIs. The new way of setting and using those values is using the user entity property API.
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/customValueHere?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:
{{issue.reporter.properties.customValueHere}}
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.
The add-on mentioned above is currently worthless for managing user entity data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have tried but it doesn't work. Could have something useful in Jira to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.