and more in a single search tool across platforms. Read the announcement here. |
11/07/2023 10:25 PM
Hi,
I want to add the accountName and the requested Entiltmentvalue to be mentioned in the Ticket Summary details in the format like "accountname_requested entitlement value".
I am able to get the accountName using task.accountName, but not able to get the entitlement value.
Add access task was generated based on Birthright rule and the JSON I'm using is :
{
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https://xxxxxx.atlassian.net/rest/api/3/issue",
"httpMethod":"POST",
"httpParams":"{\"fields\": {\"project\":{\"key\":\"TP\"},\"summary\": \"${task.accountName}_${ task.entitlement_value}\",\"issuetype\": {\"name\": \"Task\"},\"reporter\":{\"id\": \"${user.customproperty8}\"}}}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"ticketidPath":"id",
"unsuccessResponses":{
"message":"Failed"
}
}
]
}
Solved! Go to Solution.
11/07/2023 11:24 PM - edited 11/07/2023 11:28 PM
@Saviynt_Savvy did you try
\"summary\": \"${task.accountName+'_'+allEntitlementsValues}\",
${allEntitlementsValues}
11/07/2023 11:43 PM
Hi @SumathiSomala
Thanks for the response, I have tried the above format and not able to fetch the ticket number.
And I need only the Enitltlement Value, using "allEntitlementValues" will bring everything into the summary.
11/08/2023 12:04 AM
Please share the error logs
Try
\"summary\": \"${task.accountName+'_'+task.entitlement_valueKey.entitlement_value}\",
11/08/2023 04:44 AM
Thank you @SumathiSomala , I missed this.