Hello,
I nedd to add approvers to an approval step on a Team-Managed project.
The customfield Approvals isn't available on Modify Ticket Action Step.
Therefore, I try to add accountId with the smartvalues :
{ "update": { "{{issue.customfield_xxxxx}}": [ { "add": { "accountId": "{{issue.customfield_yyyyy.accountid}"} } ] } }
The value of customfields in my automation log are:
{{issue.customfield_yyyyy.accountid} = "6412f2c767102fc717bfe22e"
{{issue.customfield_xxxxx}} = "approvals" : "ServiceDeskApprovalsBean{id='10397', name='Validation', finalDecision='pending', canAnswerApproval=false, approvers=[]}"
I've tried many thing but I can't achive adding an account in approvers.
One of the Error I have is :
ISSUE.KEY (Field with id' customfield_xxxxx' and name 'Approvals' does not support operation 'add' Supported operation(s) are: 'set')
Can you help me find a way ?
Very best
To add approver, you need to do this via the issue itself.
Or via the API you need to use the set option, so if you want multiple approvers "set", you will need to provide all related account id's
As "add" is not a valid function
it seems that Approvals custom field is a user picker (single value) so you can't add a further user to it. Please try to use 'set' (that overwrites previous user) instead of 'add'.
Hope this helps,
Fabio
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.