Hi there, I have an issue with description field.
I want to take the value of Hiring Manager: John Smith from the description field and assign this issue to the hiring manager. In this example , it will be John Smith.
Any suggestions on how I can achieve this?
Thanks
SP
Hi @sharos.pillai ,
If your description have 'Manager' details, then you can use regular expression to get that information.
Ref. https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
Example I've below data in description:
Title: Onboarding Request
Hiring Manager: Piyush Annadate
Status: In Process
With above, I will use automation to extract Hiring manager name value, i.e. create a variable and have the value as below:
{{issue.description.substringBetween("Hiring Manager: ","\n")}}
Once you get the above, then you have to DO a web request to fetch the correct user matching the display name. Below will result all the matching users as Piyush Annadate, eventually it search for all users having Piyush. You have to perform a iteration to match the exact.
/rest/api/2/user/search?query=Piyush%20Annadate
Hi Piyush,
Position Title: Production Assistant
Hiring Manager: Tara Jacobs
Department: Program
The match did not work.
Thanks
SP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{issue.description.match("Hiring Manager:(.*)")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sharos.pillai ,
Using automation;
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.