Skip to content

Atlassian: Create plan

Atlassian plans.createPlan: arguments, response, policy and SDK examples.

← Plans operations · Get started

Operation atlassian.createplan

Provider route: POST /{cloudId}/rest/api/3/plans/plan. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["plans"]["createPlan"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.plans.createPlan(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.plans.create_plan(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
queryobjectOptionalAdditional keys: not allowed
query.useGroupIdbooleanOptionalDefault: false
bodyModelRequired within parentExpand Create plan — request body — body

Referenced models: Create plan — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)integerAlternativeFormat: int64
$ (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Create plan — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
crossProjectReleasesarrayOptionalThe cross-project releases to include in the plan.
Unique items: true
crossProjectReleases[]ModelEach itemExpand Create plan — request body — body cross Project Releases item
customFieldsarrayOptionalThe custom fields for the plan.
Unique items: true
customFields[]ModelEach itemExpand Create plan — request body — body custom Fields item
exclusionRulesModelOptionalExpand Create plan — request body — body exclusion Rules
The exclusion rules for the plan.
issueSourcesarrayRequired within parentThe issue sources to include in the plan.
Unique items: true
issueSources[]ModelEach itemExpand Create plan — request body — body issue Sources item
leadAccountIdstringOptionalThe account ID of the plan lead.
namestringRequired within parentThe plan name.
Maximum length: 255
Minimum length: 1
permissionsarrayOptionalThe permissions for the plan.
Unique items: true
permissions[]ModelEach itemExpand Create plan — request body — body permissions item
schedulingModelRequired within parentExpand Create plan — request body — body scheduling
The scheduling settings for the plan.

Referenced models: Create plan — request body — body cross Project Releases item, Create plan — request body — body custom Fields item, Create plan — request body — body exclusion Rules, Create plan — request body — body issue Sources item, Create plan — request body — body permissions item, Create plan — request body — body scheduling

Create plan — request body — body cross Project Releases item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
namestringRequired within parentThe cross-project release name.
releaseIdsarrayOptionalThe IDs of the releases to include in the cross-project release.
Unique items: true
releaseIds[]integerEach itemFormat: int64
Create plan — request body — body custom Fields item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
customFieldIdintegerRequired within parentThe custom field ID.
Format: int64
filterbooleanOptionalAllows filtering issues based on their values for the custom field.
Create plan — request body — body exclusion Rules
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
issueIdsarrayOptionalThe IDs of the issues to exclude from the plan.
Unique items: true
issueIds[]integerEach itemFormat: int64
issueTypeIdsarrayOptionalThe IDs of the issue types to exclude from the plan.
Unique items: true
issueTypeIds[]integerEach itemFormat: int64
numberOfDaysToShowCompletedIssuesintegerOptionalIssues completed this number of days ago will be excluded from the plan.
Format: int32
releaseIdsarrayOptionalThe IDs of the releases to exclude from the plan.
Unique items: true
releaseIds[]integerEach itemFormat: int64
workStatusCategoryIdsarrayOptionalThe IDs of the work status categories to exclude from the plan.
Unique items: true
workStatusCategoryIds[]integerEach itemFormat: int64
workStatusIdsarrayOptionalThe IDs of the work statuses to exclude from the plan.
Unique items: true
workStatusIds[]integerEach itemFormat: int64
Create plan — request body — body issue Sources item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
typestringRequired within parentThe issue source type. This must be "Board", "Project" or "Filter".
One of: Board, Project, Filter
valueintegerRequired within parentThe issue source value. This must be a board ID if the type is "Board", a project ID if the type is "Project" or a filter ID if the type is "Filter".
Format: int64
Create plan — request body — body permissions item
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
holderModelRequired within parentExpand Create plan — request body — body permissions item holder
The permission holder.
typestringRequired within parentThe permission type. This must be "View" or "Edit".
One of: View, Edit

Referenced models: Create plan — request body — body permissions item holder

Create plan — request body — body scheduling
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
dependenciesstringOptionalThe dependencies for the plan. This must be "Sequential" or "Concurrent".
One of: Sequential, Concurrent
endDateModelOptionalExpand Create plan — request body — body scheduling end Date
The end date field for the plan.
estimationstringRequired within parentThe estimation unit for the plan. This must be "StoryPoints", "Days" or "Hours".
One of: StoryPoints, Days, Hours
inferredDatesstringOptionalThe inferred dates for the plan. This must be "None", "SprintDates" or "ReleaseDates".
One of: None, SprintDates, ReleaseDates
startDateModelOptionalExpand Create plan — request body — body scheduling end Date
The start date field for the plan.

Referenced models: Create plan — request body — body scheduling end Date

Create plan — request body — body permissions item holder
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
typestringRequired within parentThe permission holder type. This must be "Group" or "AccountId".
One of: Group, AccountId
valuestringRequired within parentThe permission holder value. This must be a group name if the type is "Group" or an account ID if the type is "AccountId".
Create plan — request body — body scheduling end Date
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
dateCustomFieldIdintegerOptionalA date custom field ID. This is required if the type is "DateCustomField".
Format: int64
typestringRequired within parentThe date field type. This must be "DueDate", "TargetStartDate", "TargetEndDate" or "DateCustomField".
One of: DueDate, TargetStartDate, TargetEndDate, DateCustomField

SDK function policy ID: atlassian.createplan. Catalog operation: createplan. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["write:jira-work"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.