This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Filter elements based on parent values - in SyncCriteria or a different way

I have a big project in mf alm with many tests, each consisting of several more design steps.

Both types can be synchronized to Jira, works fine.

But not all tests and design steps are necessary in Jira.

So for tests there are lot of fields that are suitable for usage in SyncCriteria (like testtype, creationdate, ....).

However a design step doesn't have this attributes. Besides Name, Description, Attachment, Expected Result it only has its link to its parent test.

So I would like to only synchronize the design steps, in which their parent matches a certain condition. How is that possible?

Motivation: Trying to sync design steps to which the parent tests were filtered out using SyncCriteria lead to SkipSyncItemException: failed to find itemId=12345 for each design step with missing parent - and with 50k of this Exceptions I managed to crash MF Connect (or to be precisely the Tomcat it ran on)

  • 0

    Hi Thilo,

    We've looked into this, and there is no way to filter Design Steps on the basis of any Test field except Test ID.

    Parent-id is exposed in the Design Step type, which refers to the id of the test.

    If you were to add Master Filters (server side filtering) to both Test and Design Steps, filtering solely on the basis of ID - this would work.

    For example, to only sync tests with an ID greater than 3 and their associated design steps

    Add the following free-form master filter to Design Step

    parent-id[>=3]

    And add the following free-form master filter to Test

    id[>=3]

    Save

    Clear Watermarks

    Then run

    This is only possible once you switch from common projects to type specific project mappings (as you discovered in a related thread).

    I suggest logging a support incident so we can meet to look into this.

    Many Thanks,

    Ed