Forums

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

What is the smart value for "people field" to display name?

John Jemuel Lopez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 13, 2023

I'm trying to create an automation that will notify Slack whenever the people field has been updated.

 

Example:

People field name: Other Assignees

User: John Doe Sample

 

Message:

"John Doe Sample has been added to Other Assignees"

1 answer

1 vote
Bill Sheboy
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.
December 14, 2023

Hi @John Jemuel Lopez -- Welcome to the Atlassian Community!

What have you tried thus far to solve this need?

If you have started an automation rule, please post images of your rule and audit log details, and explain what is not working as you expected.

If you have not started a rule, you could use a field changed trigger and the field change smart values to access the value differences: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--

To get you started on creating your rule, please refer to these documentation and example sources:

Kind regards,
Bill

John Jemuel Lopez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2023

Hello! @Bill SheboyThanks for your reply

 

Here is the image of the rule

Screenshot 2023-12-15 at 8.59.15 AM.png

Other Assignee is the name of the "people" field I added in the story issue type.

 

Basically the it's kinda working since it sends a message in slack, but It does not return the name or names in the "people" field I added.

 

I am still new to JIRA Automation and I'm not sure if I used the correct the smart value in the rule. (basedon the image).

Bill Sheboy
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.
December 15, 2023

Thanks for posting that rule image, John.

I hypothesize the problem is the smart values are incorrect, and so they only return null values.

Smart values are name, spacing, and case-sensitive.  And, they often do not match the display name on the issue views.  To confirm the correct smart value (or the custom field id), please use the how-to article linked below.  Essentially the steps are:

  • identify an example Jira issue with your fields
  • call this REST API search with your issue using a web browser tab
yourJiraURL/rest/api/2/issue/yourIssueKey?expand=names
  • search for your fields on the page, such as with CTRL-F
  • use either the smart value or the custom field id in your rule

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Suggest an answer

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

Atlassian Community Events