Archived Picklist Values Still Appear in Filter Search Parameters

João Belas
João Belas
  • Updated
Audience: Jama Connect® Users

Products and Versions Covered: 

  • Cloud/CVC
  • Self-hosted, Replicated - KOTS

Summary

User reported an issue where they reported seeing archived values from a picklist appearing in the filter search parameters. 

This is expected behaviour. When values from a Picklist are "Archived", they still appear in the filter search parameters at the same sort order with which it was associated when it was still active. 

Resolution

It is expected that archiving values from a picklist will still appear in Search options (in a filter) as there can still be items associated with this value. If you no longer want these values, the recommended approach is to use the API endpoints to restore the archived ones and then delete them through the UI. 

You can do this by using the GET /picklists/{picklistId}/options endpoint to retrieve all picklist options, including archived values. Once you have that information, you can use the PUT /picklistoptions/{picklistOptionId} endpoint to update any archived values and restore (unarchive) them. After the values have been restored, you can delete them through the UI. This is typically the cleanest approach because when you delete a value in the UI, you’ll be prompted to select a replacement value. All items currently associated with that value will then be automatically reassigned to the value you choose.

Workaround

Delete the values from a Picklist instead of archiving it. When deleting a picklist value through the UI, it will prompt you to select another value, which will then be updated on all the associated items. 

Additional Resources 

Feedback:
We welcome your input! Please sign in to leave any comments, suggestions, or improvement ideas below.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.