Skip to content

Create labels for all Phabricator projects linked to a task

When importing a task, the linked project-tags are collected like this in the maniphest.search response:

      "attachments": {
        "projects": {
          "projectPHIDs": [
            "PHID-PROJ-qwertyuz",
            "PHID-PROJ-oijfoifoij"
          ]
        },

We should find the name of the project using the project.search API method.

Similar to users in https://gitlab.com/gitlab-org/gitlab-ce/issues/60565, we would need to cache project phids mapped to a label ID as we might link them to other issues and we would need them when creating column labels.