•  
      request #34742 Search a validation campaign by label
    Infos
    #34742
    Grégory OLIVER (oliver.gregory)
    2024-02-06 09:08
    2023-10-16 22:24
    36336
    Details
    Search a validation campaign by label

    I would like to search a campagn by label, exactly matching the label name.

    /api/projects/183/testmanagement_campaigns?query={"label":"Campagne de test Gapstronomy (TS) [2305.2]"} doesn't work.

    And

    /api/trackers/1896/artifacts?query={"label":"Campagne de test Gapstronomy (TS) [2305.2]"} return all campaign containing label, but not exactly matching the label name.
    So it returns multiple result :

    • "title": "Campagne de test Gapstronomy (TS) [2305.2] In progress"
    • "title": "Campagne de test Gapstronomy (TS) [2305.2]"
    API
    15.0
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    last edited by: Grégory OLIVER (oliver.gregory) 2024-02-05 13:32

    Same case with a custom field called "test_case_identifier".

    Using the tracker search "Expert mode" or using the API :

    test_case_identifier = '1.2313.33_MavenSurefireTest.verifyFailureTestExecutionWithOnlyErrorConsoleLog'

    return 2 results instead of one :

    • test_case_identifier=1.2313.33_MavenSurefireTest.verifyFailureTestExecutionWithOnlyErrorConsoleLog
    • test_case_identifier=1.2313.33_MavenSurefireTest.verifyFailureTestExecutionWithOnlyErrorConsoleLogAndSystemConsoleLog

    This is really problematic for searching an artifact uniquely.