Is there a chance I can convert an object to a string using smart value functions?
{{customfield_10102}} gives me this:
ServiceDeskApprovalsBean{id='14000', name='Manager Approval', finalDecision='approved', canAnswerApproval=false, approvers=[ApprovalDecision{approverDecision='approved', approver=UserBean{ ...
When I try
{{customField_10102.asJsonString}}
it gives me empty string.
I need to parse the object and extract approvers for later actions.
Hm, after try and test I got it. ServiceDeskApprovalsBean is an object and I can access it by using keys of the object. In fact I have a list of two beans there and this code works pretty well for me
{{customfield_10102.first.name}}: {{customfield_10102.first.finalDecision}}\n\n{{customfield_10102.last.name}}: {{customfield_10102.last.finalDecision}}
So the receipt is:
1. Log custom field value and save output to say notepad
2. Ignore object name, check what is after first {
3. Use keys to extract data.
is jira usable for designers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know I can make a REST API call to the issue and extract data from there, but maybe there is a function that can convert object to text? I assume asJsonString does not work because object is not a JSON.
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.