Is it possible to access smart values from an "Asset Object(s)" field in a form when submitted?

David Hart
Contributor
December 30, 2024

Automation example:

When form is submitted in a subtask then update a field in the parent ticket with the name of employee selected in the form. 

NOTE: When filling out the form the employee field in question is a dropdown that uses Jira assets to populate values, thus making it an "Asset Objects" field type.

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2024

Hello @David Hart 

In what type of project is the form being submitted; Jira Service Management, Jira Software, or Jira Business/Work Management?

David Hart
Contributor
December 30, 2024

This form is being submitted through a Service Project so I believe that it would be a JSM type form.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2024

(Disclaimer: I don't have an environment where I can actually test this.)

Take a look at this article:

Forms Automation: Access form fields with smart values (smartvalues) 

...which references this documentation:

Access smart values for forms and form fields 

Assets would appear to be classified as a "choice" type of field for the form.

https://support.atlassian.com/jira-service-management-cloud/docs/access-smart-values-for-forms-and-form-fields/#Choice-fields

Using a Log action in your Automation you should be able to print into the rule execution Audit Log the content of the form field by using the field's smart value. That should tell you if you can access the full data of the associated asset, or if the field contains only a reference for the asset.

David Hart
Contributor
December 30, 2024

Ah ha! It looks like it is indeed getting the correct asset object and in the log it will yield the correct result. However it will not edit my issue with that result. That is okay though because I can use this in another way to get to my solution. Thank you!

Like Trudy Claspill likes this

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