When a ticket is created, the assignee field is Unassigned. What I am trying to achieve is to extract the reviewer name from the requirement fields. Use that name in the Assignee field
The requirement field in the ticket looks like this:
Link: xxx.com (SharePoint link)
Reviewer: {"ABC":"ABC"} (The names extracted from SharePoint)
Owner: ABC (The names extracted from SharePoint)
The reviewer can contain more than one name. The first name goes to Assignee field and remaining goes to collaborator, if it is doable.
I created the flow, and I tried a lot of things, but nothing seems to be working. My current flow is :
Trigger: Work item created
Action:
Created Variable
Variable name
Access using {{reviewerRegex}}.
Smart value
Reviewer:\s*\{\s*"([^"]+)"
Action:
Assign the work item
User
{{jiraUser(issue.description.match(reviewerRegex)).accountId}}
Can anyone please help me correct logic and condition?