Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Write an automation rule to get a Hiring Manager information from Description Field

sharos.pillai May 11, 2025

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

 

 

2 answers

2 votes
Piyush Annadate _ACE Pune_
Community Champion
May 11, 2025

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

 

sharos.pillai May 18, 2025

Hi Piyush,

Position Title: Production Assistant

Hiring Manager: Tara Jacobs

Department: Program

workflow1.pngauditlog1.png

The match did not work.

Thanks

SP

Bob Dalm
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2025

{{issue.description.match("Hiring Manager:(.*)")}}

0 votes
Bob Dalm
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 11, 2025

Hi @sharos.pillai , 

Using automation; 

  1. Fetch the hiring manager:
  2. Store this to a variable, do a log action to ensure you get the right value. 
  3. Add a web request action using the Jira API; https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-query-get
  4. Use the output in an Edit issue action to update the assignee. 

 

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events