# Update Sprint Fully — Jira Data Center

> Performs a full update of a sprint. A full update means that the result will be exactly the same as the request body. Any fields not present in the request JSON will be set to null. See the documentation

- Key: `jira_data_center-update-sprint-fully`
- Type: Action (Write)
- Version: 0.0.3
- App: Jira Data Center (`jira_data_center`) — https://pipedream.com/apps/jira-data-center.md
- This page (HTML): https://pipedream.com/apps/jira-data-center/actions/update-sprint-fully
- Hints: destructive · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/jira_data_center/actions/update-sprint-fully/update-sprint-fully.mjs

## Description

Performs a full update of a sprint. A full update means that the result will be exactly the same as the request body. Any fields not present in the request JSON will be set to null. [See the documentation](https://developer.atlassian.com/server/jira/platform/rest/v10002/api-group-sprint/#api-agile-1-0-sprint-sprintid-put)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `boardId` | `string` | Yes | The ID of the board Options are loaded from the connected account. |
| `sprintId` | `string` | Yes | The ID of the sprint Options are loaded from the connected account. |
| `name` | `string` | Yes | The name of the sprint |
| `state` | `string` | Yes | The state of the sprint |
| `startDate` | `string` | Yes | The start date of the sprint. Format: YYYY-MM-DDTHH:MM:SS.SSSZ |
| `endDate` | `string` | Yes | The end date of the sprint. Format: YYYY-MM-DDTHH:MM:SS.SSSZ |
| `autoStartStop` | `boolean` | No | Whether to automatically start and stop the sprint |
| `goal` | `string` | No | The goal of the sprint |
| `synced` | `boolean` | No | Whether the sprint is synced. Only Jira administrators can create synced sprints. |
| `activatedDate` | `string` | No | The activated date of the sprint. Format: YYYY-MM-DDTHH:MM:SS.SSSZ |
| `completedDate` | `string` | No | The completed date of the sprint. Format: YYYY-MM-DDTHH:MM:SS.SSSZ |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "jira_data_center",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "jira_data_center-update-sprint-fully",
  arguments: {
    boardId: "Board ID",
    sprintId: "Sprint ID",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "jira_data_center-update-sprint-fully",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    jira_data_center: { authProvisionId: "apn_xxxxxxx" },
    boardId: "Board ID",
    sprintId: "Sprint ID",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "jira_data_center-update-sprint-fully",
    "configured_props": {
      "jira_data_center": { "authProvisionId": "apn_xxxxxxx" },
      "boardId": "Board ID",
      "sprintId": "Sprint ID"
    }
  }'
```

---

- App: https://pipedream.com/apps/jira-data-center.md · All apps: https://pipedream.com/apps
