I have a flow created that creates a jira ticket when a sharepoint list has a new row of data added.
I have created 4 variables to remove blanks from the fields that need to be added as a label
Report_Group_Fixed = replace(triggerOutputs()?['body/RequestGroup'], ' ', '')
Request_Type_Fixed = replace(triggerOutputs()?['body/RequestType'], ' ', '')
Request_Focus_Fixed = replace(triggerOutputs()?['body/RequestFocus'], ' ', '')
Data_Domain_Fixed = replace(triggerOutputs()?['body/DataDomain'], ' ', '')
I can create a new ticket using Create a new issue (V3)
Then I have the Edit Issue(V2) , and use the IssueId as Issue Key
If I paste this code to get the reporter , it works
{
"reporter": {
"id": "@{triggerBody()?['Reporter_ID']}"
}
but when I try to add the labels , I am getting an error
{
"update": {
"labels": [
{
"add": "@{variables('Report_Group_Fixed')}"
},
{
"add": "@{variables('Request_Type_Fixed')}"
},
{
"add": "@{variables('Data_Domain_Fixed')}"
}
]
}
}