Hi! I love Code Barrel's Automation plugin.
Now, I can set user properties via API:
curl -D- -d'"VIP User"' -u admin:<password> -X PUT -H "Content-Type: application/json" https://<My JIRA Cloud>.atlassian.net/rest/api/2/user/properties/vip?username=admin
And I can similarly retrieve them:
curl -D- -u admin:<password> -X GET https://<My JIRA Cloud>.atlassian.net/rest/api/2/user/properties/vip?username=admin
In the Automation plugin, I can retrieve many Reporter's details, eg., if the Reporter is admin, then I can set the Reporter Username custom field this way:
{
"fields": {
"Reporter Username": "{{issue.reporter.name}}"
}
}
It makes sense to me that this should work, to set a VIP User custom field:
{
"fields": {
"VIP User": "{{issue.reporter.properties.vip}}"
}
}
However this doesn't work. How do I access the "vip" property I set on the user entity in the JIRA Automation plugin?