Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-2907

API 2.0: Unable to set ownerId on Tasks endpoint with POST or PATCH calls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 10.93
    • 10.72
    • REST API
    • 1
    • Severity 2 - Major
    • No

    Description

      Issue Summary

      Unable to set ownerId on Tasks endpoint with POST or PATCH calls
      Currently, these are the responses:

      HTTP 400
      Cannot create task. ownerId doesn't belong to the same team as storyId

      HTTP 400
      Cannot update task with id <id>. ownerId doesn't belong to the same team as storyId

      Steps to Reproduce

      Validated the following scenarios via UI:

      Scenario: Story has NO related Agile team

      Method #1 – Add via Quick Add section within Story slide-out panel

      Task Owner can be selected among the team members of the following teams: any teams related to the Program (the Program team itself + any other Agile or Kanban team)

      Method #2 – Via Task grid page

      Same as above + the current user

      Scenario: Story HAS one related Agile team

      Method #1 – via Quick Add section within Story slide-out panel

      same as previous scenario Task Owner can be selected among the team members of the following teams: any teams related to the Program (the Program team itself + any other Agile or Kanban team)

      Method #2 – Via Task grid page

      Once Story is selected, Task Owner can be selected among the associated Agile team members + the current user notice Program team members are no longer allowed as explicit Agile team has been assigned

      Expected Results

      • API should mirror the minimum validation presented in the UI.

        The Task Owner must be a member of Program Team or Agile Team associated to the respective Story.

        The relationship chain is like:

        • Program (Program Team) >> Agile Team >> Story >> Task
        Program Agile Team Story Task

        So before trying to select an Owner for a Task you must validate that user's membership to some of those teams.

      Actual Results

      • API returns 40x:

        HTTP 400
        Cannot create task. ownerId doesn't belong to the same team as storyId

        HTTP 400
        Cannot update task with id <id>. ownerId doesn't belong to the same team as storyId

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      Attachments

        1. agile-team.png
          agile-team.png
          97 kB
        2. program.png
          program.png
          97 kB
        3. story.png
          story.png
          104 kB
        4. task.png
          task.png
          54 kB

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              fd18f17e9ccb align-connector-bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync