JiraClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnNewIssue_Datacenter': {'operation_id': 'OnNewIssue_Datacenter', 'path': '/{connectionId}/datacenter/new_issue_trigger/search', 'method': 'get', 'required_parameters': ['projectKey'], 'callback_payload_type': 'FullIssue'}, 'OnCloseIssue_Datacenter': {'operation_id': 'OnCloseIssue_Datacenter', 'path': '/{connectionId}/datacenter/close_issue_trigger/search', 'method': 'get', 'required_parameters': ['projectKey'], 'callback_payload_type': 'FullIssue'}, 'OnNewIssueJQL_Datacenter': {'operation_id': 'OnNewIssueJQL_Datacenter', 'path': '/{connectionId}/datacenter/new_issue_jql_trigger/search', 'method': 'get', 'required_parameters': ['jql'], 'callback_payload_type': 'FullIssue'}, 'OnCloseIssue_V2': {'operation_id': 'OnCloseIssue_V2', 'path': '/{connectionId}/v2/close_issue_trigger/search', 'method': 'get', 'required_parameters': ['projectKey'], 'callback_payload_type': 'FullIssue'}, 'OnNewIssue_V2': {'operation_id': 'OnNewIssue_V2', 'path': '/{connectionId}/v2/new_issue_trigger/search', 'method': 'get', 'required_parameters': ['projectKey'], 'callback_payload_type': 'FullIssue'}, 'OnNewIssueJQL_V2': {'operation_id': 'OnNewIssueJQL_V2', 'path': '/{connectionId}/v2/new_issue_jql_trigger/search', 'method': 'get', 'required_parameters': ['jql'], 'callback_payload_type': 'FullIssue'}}
Classes
ListIssuesResponse
dataclass
ListIssuesResponse(next_page_token: Optional[str] = None, is_last: Optional[bool] = None, issues: Optional[List[FullIssue]] = None)
Response for Get list of issues
Attributes
next_page_token
class-attribute
instance-attribute
The token used to retrieve the next page of issues. Pass this value into the 'Next page token' input of a subsequent call to fetch the next page. Absent on the last page.
ListIssuesResponseDatacenter
dataclass
ListIssuesResponseDatacenter(start_at: Optional[int] = None, max_results: Optional[int] = None, issues: Optional[List[FullIssue]] = None)
Response for Get list of issues (Datacenter)
Attributes
start_at
class-attribute
instance-attribute
The index of the first item to return in a page of results
ListTransitionsResponse
dataclass
Response for Get list of Transitions
UpdateTransitionResponse
dataclass
GetCurrentUserResponse
dataclass
FullIssue
dataclass
FullIssue(id: Optional[str] = None, key: Optional[str] = None, self: Optional[str] = None, fields: Optional[Dict[str, Any]] = None)
Response for When a new issue is created (Datacenter)
MCPQueryResponse
dataclass
MCPQueryResponse(jsonrpc: Optional[str] = None, id: Optional[str] = None, method: Optional[str] = None, params: Optional[Dict[str, Any]] = None, result: Optional[Dict[str, Any]] = None, error: Optional[Dict[str, Any]] = None)
Response for Jira MCP Server
CommentResponse
dataclass
CommentResponse(id: Optional[str] = None, body: Optional[str] = None, created: Optional[str] = None)
Response for Add comment
CancelTaskResponse
dataclass
CreateIssueInput
dataclass
CreateIssueResponse
dataclass
CreateProjectInput
dataclass
CreateProjectInput(key: Optional[str] = None, name: Optional[str] = None, project_type_key: Optional[str] = None, lead_account_id: Optional[str] = None, description: Optional[str] = None)
Create a new project
Attributes
key
class-attribute
instance-attribute
The unique key, starts with a capital letter.
project_type_key
class-attribute
instance-attribute
Project type key.
lead_account_id
class-attribute
instance-attribute
Id of Project lead.
CreateProjectResponse
dataclass
CreateProjectCategoryInput
dataclass
CreateProjectCategoryResponse
dataclass
EditIssueInput
dataclass
EditIssueInput(transition: Optional[Dict[str, Any]] = None, fields: Optional[Dict[str, Any]] = None, update: Optional[Dict[str, Any]] = None, history_metadata: Optional[Dict[str, Any]] = None, properties: Optional[List[Dict[str, Any]]] = None)
Edit Issue
Attributes
transition
class-attribute
instance-attribute
Transition
fields
class-attribute
instance-attribute
List of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use update. Fields included in here cannot be included in update.
update
class-attribute
instance-attribute
A Map containing the field field name and a list of operations to perform on the issue screen field. Note that fields included in here cannot be included in fields.
EditIssueResponse
dataclass
GetTaskResponse
dataclass
GetUserResponse
dataclass
ListFiltersResponse
dataclass
ListProjectsResponse
dataclass
UpdateProjectInput
dataclass
UpdateProjectInput(key: Optional[str] = None, name: Optional[str] = None, project_type_key: Optional[str] = None, project_template_key: Optional[str] = None, description: Optional[str] = None, lead: Optional[str] = None, lead_account_id: Optional[str] = None, url: Optional[str] = None, assignee_type: Optional[str] = None, avatar_id: Optional[str] = None, issue_security_scheme: Optional[str] = None, permission_scheme: Optional[str] = None, notification_scheme: Optional[str] = None, category_id: Optional[str] = None)
Update Project
Attributes
project_type_key
class-attribute
instance-attribute
Project Type Key
project_template_key
class-attribute
instance-attribute
project_template_key: Optional[str] = field(default=None, metadata={'wire_name': 'projectTemplateKey'})
Project Template Key
lead_account_id
class-attribute
instance-attribute
Lead Account ID
assignee_type
class-attribute
instance-attribute
Assignee Type
avatar_id
class-attribute
instance-attribute
Avatar ID
issue_security_scheme
class-attribute
instance-attribute
issue_security_scheme: Optional[str] = field(default=None, metadata={'wire_name': 'issueSecurityScheme'})
Issue Security Scheme
permission_scheme
class-attribute
instance-attribute
Permission Scheme
UpdateProjectResponse
dataclass
Project
dataclass
Project(id: Optional[str] = None, key: Optional[str] = None, name: Optional[str] = None, project_type_key: Optional[str] = None)
Definition: Project
Attributes
PartialIssue
dataclass
Creator
dataclass
Creator(account_id: Optional[str] = None, key: Optional[str] = None, email_address: Optional[str] = None, display_name: Optional[str] = None)
Definition: Creator
Attributes
account_id
class-attribute
instance-attribute
Person who created the issue.
key
class-attribute
instance-attribute
Unique key of the person who created the issue.
email_address
class-attribute
instance-attribute
Email of the person who created the issue.
Assignee
dataclass
Assignee(account_id: Optional[str] = None, key: Optional[str] = None, email_address: Optional[str] = None, display_name: Optional[str] = None)
Definition: Assignee
Attributes
account_id
class-attribute
instance-attribute
Person whom the issue is assigned to.
key
class-attribute
instance-attribute
Unique key of the person whom the issue is assigned to.
email_address
class-attribute
instance-attribute
Email of the person whom the issue is assigned to.
User
dataclass
User(account_id: Optional[str] = None, key: Optional[str] = None, email_address: Optional[str] = None, display_name: Optional[str] = None)
Definition: User
Attributes
account_id
class-attribute
instance-attribute
Id of the Jira user.
email_address
class-attribute
instance-attribute
Email of the Jira user.
Reporter
dataclass
Reporter(account_id: Optional[str] = None, key: Optional[str] = None, email_address: Optional[str] = None, display_name: Optional[str] = None)
Definition: Reporter
Attributes
account_id
class-attribute
instance-attribute
Person who reported the issue.
key
class-attribute
instance-attribute
Unique key of the person who reported the issue.
email_address
class-attribute
instance-attribute
Email of the person who reported the issue.
CreateIssueRequest
dataclass
Definition: CreateIssueRequest
UpdateIssueRequest
dataclass
Definition: UpdateIssueRequest
Comment
dataclass
Transition
dataclass
Transition(id: Optional[str] = None, name: Optional[str] = None, to: Optional[TransitionStatus] = None, fields: Optional[Dict[str, Any]] = None)
Definition: Transition
Attributes
TransitionStatus
dataclass
TransitionInput
dataclass
TransitionInput(fields: Optional[Dict[str, Any]] = None, history_metadata: Optional[Dict[str, Any]] = None, transition: Optional[Dict[str, Any]] = None, update: Optional[Dict[str, Any]] = None)
Definition: TransitionInput
MCPQueryRequest
dataclass
MCPQueryRequest(jsonrpc: Optional[str] = None, id: Optional[str] = None, method: Optional[str] = None, params: Optional[Dict[str, Any]] = None, result: Optional[Dict[str, Any]] = None, error: Optional[Dict[str, Any]] = None, callback_endpoint: Optional[str] = None)
Definition: MCPQueryRequest
JiraClient
JiraClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for jira connector.
Initialize a JiraClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
list_resources_async
async
Get list of Resources
This operation returns a list of resources accessible to user.
list_issues_async
async
list_issues_async(jql: Optional[str] = None, next_page_token: Optional[str] = None) -> dict[str, Any] | None
Get list of issues
This operation returns a list of issues using JQL.
list_issues_datacenter_async
async
Get list of issues (Datacenter)
This operation returns a list of issues using JQL.
list_transitions_async
async
Get list of Transitions
Returns a list of the transitions possible for this issue by the current user
update_transition_async
async
Performs an issue transition
Transitions an issue to a new status.
get_current_user_async
async
Get current user
This operation returns details for the current user
mcp_jira_issue_management_async
async
mcp_jira_issue_management_async(input: MCPQueryRequest, session_id: Optional[str] = None) -> dict[str, Any] | None
Jira MCP Server
Jira MCP Server
add_comment_async
async
Add comment
This operation is used to add a comment to an existing Jira issue.
cancel_task_async
async
Cancel Task
Cancels a task. Permissions required: either of: Administer Jira or Creator of the task.
create_issue_async
async
create_issue_async(input: CreateIssueInput, project_key: str, issue_type_ids: str) -> dict[str, Any] | None
Create a new issue
This operation is used to create a new issue.
create_project_async
async
Create a new project
This operation is used to create a new Jira project.
create_project_category_async
async
Create Project Category
Creates a project category. Permissions required: Administer Jira (global permissions)
delete_project_async
async
Delete Project
Deletes a project. Permissions required: Administer Jira (global permissions)
edit_issue_async
async
edit_issue_async(input: EditIssueInput, issue_id_or_key: str, notify_users: Optional[bool] = None, override_screen_security: Optional[bool] = None, override_editable_flag: Optional[bool] = None) -> dict[str, Any] | None
Edit Issue
Edits an issue. A transition may be applied and issue properties updated as part of the edit. The edits to the issue's fields are defined using update and fields.
get_all_project_categories_async
async
Get All Project Categories
Returns all project categories.
get_issue_async
async
Get issue by key
This operation is used to retrieve the issue object for a given issue Key.
get_task_async
async
Get Task
Returns the status of a long-running asynchronous task. When a task has finished, this operation returns the JSON blob applicable to the task.
get_user_async
async
Get User
Returns a user. Permissions required: Browse users and groups.
list_filters_async
async
Get list of Filters
This operation returns a list of Filters accessible to user.
list_projects_async
async
Get projects
This operation is used to retrieve a list of projects for your Jira instance.
list_project_users_async
async
List users by project
This operation is used to retrieve a list of all users associated with a project.
remove_project_category_async
async
Remove Project Category
Deletes a project category. Permissions required: Administer Jira (global permissions)
update_project_async
async
Update Project
Updates the project details of a project.
list_issue_types_async
async
Get issue types
This operation is used to retrieve a list of issue types for a given project.