How to configure a Asset custom field to reference a Jira single list custom field ?


Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

This article describes a scenario where a default Asset custom field can select a different Object type based on a Jira single list custom field. This single list custom field is not an Asset custom field.

Environment

JSM 5.x

Solution

  • The asset custom field is referring the selected value from the select List custom field. In the screenshots below, ObjectList is the Jira select list custom field. TestAsset is the Asset Object Type Custom field. 
  • With the change in ObjectList, objects retrieved in TestAsset also change. Objects in the TestAsset field are child objects of selection in Jira custom field ObjectList.



  • To have similar behavior, you must configure the Asset Custom field per the following screenshot.

  • Then you configure the issue scope AQL similar to this:
 objectType = ${customfield_11003.name}
  • You can get the custom-field ID of the Jira Select List custom field from the URL while configuring that custom field. Check the screenshot for reference.



Last modified on Feb 12, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.