Blog

How to GET/POST task predecessor values?

3 commenti

  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Hugh

    Hey Doug Allinger, there is a way to modify dependencies through the API mentioned in the documentation here. Let me know if this helped, and if you need any further assistance, I can raise a Support ticket for you if you'd like!

    Hugh Community Team at Wrike ๐Ÿ’กConosci le straordinarie funzionalitร  di Wrike e le best practices

    Is this helpful? 0
    Azioni per commenti Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Doug Allinger

    Hi, Hugh.


    Thanks for the response. I am using that method to get and create dependencies, but it doesn't provide a means to set a date offset associated with the relationType.

    So the first task in the image I attached (Phase 2) would be not problem, since it is a successor to item #2 with relationType
    FinishToStart". But to set the dependency for the other items, such as *Gap Remediation Month 1", the dependency is "34FS +30d", to start 30 days after the finish of item #34.

    I am looking for a method to specify the +30d, for example.

    A query of tasks for item #2 returns, followed by query of task dependencies. Neither includes the "Predecessor" offset value.

    {
      "kind""tasks",
      "data": [
        {
          "id""IEACPQK2KQPFRB54",
          "accountId""IEACPQK2",
          "title""*Gap Remediation Month 2",
          "description""",
          "briefDescription""",
          "parentIds": [
            "IEACPQK2I7777777"
          ],
          "superParentIds": [
            "IEACPQK2I4PFRB2W"
          ],
          "sharedIds": [
            "KX74MTJZ",
            "KUAFVCAD"
          ],
          "responsibleIds": [],
          "status""Active",
          "importance""Normal",
          "createdDate""2020-05-20T14:17:57Z",
          "updatedDate""2020-05-30T14:51:11Z",
          "dates": {
            "type""Planned",
            "duration"480,
            "start""2021-01-28T09:00:00",
            "due""2021-01-28T17:00:00"
          },
          "scope""WsTask",
          "authorIds": [
            "KUAFVCAD"
          ],
          "customStatusId""IEACPQK2JMAAAAAA",
          "hasAttachments"false,
          "priority""42ed80008000000000009800",
          "followedByMe"true,
          "followerIds": [
            "KUAFVCAD"
          ],
          "superTaskIds": [
            "IEACPQK2KQPFRB32"
          ],
          "subTaskIds": [],
          "dependencyIds": [
            "IEACPQK2IUPFRB54KMPFRB5Y",
            "IEACPQK2IUPFRB5VKMPFRB54"
          ],
          "metadata": [],
          "customFields": [
            {
              "id""IEACPQK2JUABDM63",
              "value""Task"
            }
          ]
        }
      ]
    }
     
    {
      "kind""dependencies",
      "data": [
        {
          "id""IEACPQK2IUPFRB54KMPFRB5Y",
          "predecessorId""IEACPQK2KQPFRB54",
          "successorId""IEACPQK2KQPFRB5Y",
          "relationType""FinishToStart"
        },
        {
          "id""IEACPQK2IUPFRB5VKMPFRB54",
          "predecessorId""IEACPQK2KQPFRB5V",
          "successorId""IEACPQK2KQPFRB54",
          "relationType""FinishToStart"
        }
      ]
    }
    Is this helpful? 0
    Azioni per commenti Permalink
  • Spot On! ๐Ÿ‘ Innovative Approach ๐Ÿ’ก Stellar Advice ๐Ÿ’ช
    Avatar
    Hugh

    Hey Doug Allinger, I've raised a Support ticket for you. Someone should be in contact with you soon!

    Hugh Community Team at Wrike ๐Ÿ’กConosci le straordinarie funzionalitร  di Wrike e le best practices

    Is this helpful? 0
    Azioni per commenti Permalink

Accedi per aggiungere un commento.

Folllowing List for Post: How to GET/POST task predecessor values?
[this list is visible for admins and agents only]

Community

Welcome ๐Ÿ––

Hi there! ๐Ÿ™‚ Want to become a black belt Wrike Ninja? Here's how to earn a Wrike badge

Welcome ๐Ÿ–– Have you checked out this week's Release Notes yet?

Hey! ๐Ÿ‘‹ Curious about something? Visit How To to search and ask the Community for answers.

Welcome! ๐Ÿ‘‹ Figured out a good tip or trick? Share it in Best Practices.

Want to connect your existing software to Wrike? Learn and ask how in the API section.