Workfront Boards Modules
The problem I had with fusion automation and searching boards is the redundant number of operations used to search. I have found a way to reduce this to 4 operations.
The body is filled with this query and based on an inspect I used on the Get Board module. I have added the portion below to it to reduce operations for searching in a scenario. There is a lot of irrelevant information in the call but I am too lazy to remove it. I start the scenario using a instant webhook with task status change and assignedToID = Desired user, I get the card information in the getBoard() query, then use iterator to make an array and filter via card obj id = taskID, then move the card to the columnID that I got in the getBoard() query.
ADDED CODE:
cards {\n id\n name\n connectedObject {\n objectId\n status\n }\n }
BODY:
{
"query": "query getBoard($workspaceId: String, $boardId: String!, $iterationId: String) {\n getBoard(\n workspaceId: $workspaceId\n boardId: $boardId\n iterationId: $iterationId\n ) {\n id\n name\n columnType\n ownerType\n ownerId\n cards {\n id\n name\n connectedObject {\n objectId\n status\n }\n } columns {\n id\n name\n type\n cardIds\n actions {\n onEnter {\n ... on SetFieldAction {\n type\n params {\n field\n value\n isAdditive\n members {\n ...memberFields\n __typename\n }\n __typename\n }\n __typename\n }\n ... on SetWFStatusAction {\n type\n params {\n field\n taskValue\n issueValue\n defaultTaskValues\n defaultIssueValues\n __typename\n }\n __typename\n }\n __typename\n }\n __typename\n }\n scopes {\n status\n members\n tags\n workfrontTaskFilter {\n filterId\n filterIds\n filters\n __typename\n }\n workfrontIssueFilter {\n filterId\n filterIds\n filters\n __typename\n }\n __typename\n }\n settings {\n wiplimit\n __typename\n }\n __typename\n }\n members {\n ...memberFields\n __typename\n }\n tags {\n id\n name\n color\n __typename\n }\n template\n config {\n board\n card\n column\n __typename\n }\n createdDate\n lastModifiedDate\n isArchived\n archivedDate\n archiverUserId\n workspaceId\n cardsCount\n __typename\n }\n}\n\nfragment memberFields on Member {\n id\n objId\n customerId\n name\n objCode\n avatar\n avatarDate\n isActive\n defaultWorkspace\n licenseType\n groupingPreferences\n filteringPreferences\n preferences\n __typename\n}",
"variables": {
"boardId": "Enter your board ID here",
"iterationId": null,
"workspaceId": null
}
}

