useblocks / sphinx-needs-enterprise

Sphinx-Needs Functions for enterprise users
http://useblocks.com/sphinx-needs-enterprise/
Other
5 stars 1 forks source link

Codebeamer: Type specific id_prefix #28

Open twodrops opened 2 years ago

twodrops commented 2 years ago

Currently id_prefix can be set as part of needservice or in 'conf.py'. It will be nice to set a need type specific id_prefix automatically.

Is there a way to combine this with https://github.com/useblocks/sphinx-needs-enterprise/issues/26 so that all type-specific things are done together?

Example:

        'id_prefix': 'GLOBAL_CB_',   
         'mappings': {
             'type': ['typeName'],
        },
        'mappings_replaces': {
            '^Requirement$': 'req',
            '^Testcase$': 'test',
        }, `
        'type_options': {
            'req': {
                     'id_prefix': 'REQ_CB_',
                     'another_type_specific_config': 'value',
                     },
            'test': {
                     'id_prefix': 'TEST_CB_',
                     'another_type_specific_config': 'value',
                     },
        },