This issue has been created
 
 
CQL / cid:jira-generated-image-avatar-3673c8e7-f8ff-48af-80f8-254d7dcc5db8 CQL-13 Open

Allow defining custom converters matching fields with regexes

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ed9089ec-8dfb-4a49-b119-e2c3c42a0a79 Raphaël Jakse created this issue on 05/Feb/26 15:31
 
Summary: Allow defining custom converters matching fields with regexes
Issue Type: cid:jira-generated-image-avatar-3673c8e7-f8ff-48af-80f8-254d7dcc5db8 New Feature
Affects Versions: 0.1.1
Assignee: Unassigned
Created: 05/Feb/26 15:31
Priority: cid:jira-generated-image-static-major-7fb88115-5ec8-4294-8c29-191a25eef89e Major
Reporter: Raphaël Jakse
Description:

Some Confluence plugins define CQL fields with dynamic names.

For instance Metadata for Confluence. This can be noticed in the documentation of their metadata-overview macro.

The existing solution to use the component name / hints of the converter to determine which field it handles doesn't work in such dynamic context.

To make this work, we introduce a getHandledFields method returning a String or a Pattern that converters can implement. If they don't, or if they return null, we fall back to the component hints, keeping full backward compatibility with existing code and keeping the existing elegant and efficient way that uses the hints for fields with static names.