jira API reference
179 public APIs from jira (pycontribs/jira) — 51 classes, 7 functions, 121 methods. Signatures extracted by static analysis of the actual source.
Repository: pycontribs/jira
| Kind | Count |
|---|---|
| Classes | 51 |
| Functions | 7 |
| Methods | 121 |
API list
class
jira.client.JIRAUser interface to Jira.
method
jira.client.JIRA.add_group(groupname:str) -> boolCreate a new group in Jira.
method
jira.client.JIRA.add_issue_property(issue:str, key:str, data) -> ResponseAdd or update a specific issue property Resource.
method
jira.client.JIRA.add_issues_to_epic(epic_id:str, issue_keys:str | list[str], ignore_epics:bool | None=None) -> ResponseAdd the issues in ``issue_keys`` to the ``epic_id``.
method
jira.client.JIRA.add_issues_to_sprint(sprint_id:int, issue_keys:list[str]) -> ResponseAdd the issues in ``issue_keys`` to the ``sprint_id``.
method
jira.client.JIRA.add_user_to_group(username:str, group:str) -> bool | dict[str, Any]Add a user to an existing group.
method
jira.client.JIRA.add_vote(issue:str | int) -> ResponseRegister a vote for the current authenticated user on an issue.
method
jira.client.JIRA.add_watcher(issue:str | int, watcher:str) -> ResponseAdd a user to an issue's watchers list.
method
jira.client.JIRA.application_properties(key:str | None=None) -> dict[str, str] | list[dict[str, str]]Return the mutable server application properties.
method
jira.client.JIRA.applicationlinks(cached:bool=True) -> listList of application links.
method
jira.client.JIRA.assign_issue(issue:int | str, assignee:str | None) -> boolAssign an issue to a user.
method
jira.client.JIRA.attachment(id:str) -> AttachmentGet an attachment Resource from the server for the specified ID.
method
jira.client.JIRA.attachment_meta() -> dict[str, int]Get the attachment metadata.
method
jira.client.JIRA.backup(filename:str='backup.zip', attachments:bool=False) -> bool | int | NoneWill call jira export to backup as zipped xml.
method
jira.client.JIRA.backup_download(filename:str | None=None)Download backup file from WebDAV (cloud only).
method
jira.client.JIRA.backup_progress() -> dict[str, Any] | NoneReturn status of cloud backup as a dict.
method
jira.client.JIRA.boards(startAt:int=0, maxResults:int=50, type:str | None=None, name:str | None=None, projectKeyOrID=None) -> ResultList[Board]Get a list of board resources.
method
jira.client.JIRA.client_info() -> strGet the server this client is connected to.
method
jira.client.JIRA.comment(issue:int | str, comment:str, expand:str | None=None) -> CommentGet a comment Resource from the server for the specified ID.
method
jira.client.JIRA.component(id:str)Get a component Resource from the server.
method
jira.client.JIRA.component_count_related_issues(id:str)Get the count of related issues for a component.
method
jira.client.JIRA.copy_dashboard(id:str, name:str, description:str | None=None, edit_permissions:list[dict] | list | None=None, share_permissions:list[dict] | list | None=None) -> DashboardCopy an existing dashboard.
method
jira.client.JIRA.create_customer(email:str, displayName:str) -> CustomerCreate a new customer and return an issue Resource for it.
method
jira.client.JIRA.create_issue(fields:dict[str, Any] | None=None, prefetch:bool=True, **fieldargs) -> IssueCreate a new issue and return an issue Resource for it.
method
jira.client.JIRA.create_issue_link(type:str | IssueLinkType, inwardIssue:str, outwardIssue:str, comment:dict[str, Any] | None=None) -> ResponseCreate a link between two issues.
method
jira.client.JIRA.create_sprint(name:str, board_id:int, startDate:Any | None=None, endDate:Any | None=None, goal:str | None=None) -> SprintCreate a new sprint for the ``board_id``.
method
jira.client.JIRA.current_user(field:str | None=None) -> strReturn the `accountId` (Cloud) else `username` of the current user.
method
jira.client.JIRA.custom_field_option(id:str) -> CustomFieldOptionGet a custom field option Resource from the server.
method
jira.client.JIRA.dashboard(id:str) -> DashboardGet a dashboard Resource from the server.
method
jira.client.JIRA.deactivate_user(username:str) -> str | intDisable/deactivate the user.
method
jira.client.JIRA.delete_attachment(id:str) -> ResponseDelete attachment by id.
method
jira.client.JIRA.delete_board(id)Delete an agile board.
method
jira.client.JIRA.delete_component(id:str) -> ResponseDelete component by id.
method
jira.client.JIRA.delete_issue_link(id:str)Delete a link between two issues.
method
jira.client.JIRA.delete_project(pid:str | Project, enable_undo:bool=True) -> bool | NoneDelete project from Jira.
method
jira.client.JIRA.delete_project_avatar(project:str, avatar:str) -> ResponseDelete a project's avatar.
method
jira.client.JIRA.delete_user(username:str) -> boolDeletes a Jira User.
method
jira.client.JIRA.delete_user_avatar(username:str, avatar:str) -> ResponseDelete a user's avatar.
method
jira.client.JIRA.editmeta(issue:str | int)Get the edit metadata for an issue.
method
jira.client.JIRA.fields() -> list[dict[str, Any]]Return a list of all issue fields.
method
jira.client.JIRA.filter(id:str) -> FilterGet a filter Resource from the server.
method
jira.client.JIRA.find(resource_format:str, ids:tuple[str, str] | int | str='') -> ResourceFind Resource object for any addressable resource on the server.
method
jira.client.JIRA.get_project_version_by_name(project:str, version_name:str) -> Version | NoneGet a version Resource by its name present on a project.
method
jira.client.JIRA.group(id:str, expand:Any | None=None) -> GroupGet a group Resource from the server.
method
jira.client.JIRA.group_members(group:str) -> OrderedDictReturn a hash or users with their information.
method
jira.client.JIRA.groups(query:str | None=None, exclude:Any | None=None, maxResults:int=9999) -> list[str]Return a list of groups matching the specified criteria.
method
jira.client.JIRA.issue(id:Issue | str, fields:str | None=None, expand:str | None=None, properties:str | None=None) -> IssueGet an issue Resource from the server.
method
jira.client.JIRA.issue_link(id:str) -> IssueLinkGet an issue link Resource from the server.
method
jira.client.JIRA.issue_link_type(id:str) -> IssueLinkTypeGet an issue link type Resource from the server.
method
jira.client.JIRA.issue_link_types(force:bool=False) -> list[IssueLinkType]Get a list of issue link type Resources from the server.
method
jira.client.JIRA.issue_properties(issue:str) -> list[IssueProperty]Get a list of issue property Resource from the server for an issue.
method
jira.client.JIRA.issue_property(issue:str, key:str) -> IssuePropertyGet a specific issue property Resource from the server.
method
jira.client.JIRA.issue_type(id:str) -> IssueTypeGet an issue type Resource from the server.
method
jira.client.JIRA.issue_type_by_name(name:str, project:str | None=None) -> IssueTypeGet issue type by name.
method
jira.client.JIRA.issue_type_schemes() -> list[IssueTypeScheme]Get all issue type schemes defined (Admin required).
method
jira.client.JIRA.issue_types() -> list[IssueType]Get a list of issue type Resources from the server.
method
jira.client.JIRA.issue_types_for_project(projectIdOrKey:str) -> list[IssueType]Get a list of issue types available within the project.
method
jira.client.JIRA.kill_session() -> ResponseDestroy the session of the current authenticated user.
method
jira.client.JIRA.kill_websudo() -> Response | NoneDestroy the user's current WebSudo session.
method
jira.client.JIRA.myself() -> dict[str, Any]Get a dict of client information for this Jira instance.
method
jira.client.JIRA.pin_comment(issue:int | str, comment:int | str, pin:bool) -> ResponsePin/Unpin a comment on the issue.
method
jira.client.JIRA.pinned_comments(issue:int | str) -> list[PinnedComment]Get a list of pinned comment Resources of the issue provided.
method
jira.client.JIRA.priorities() -> list[Priority]Get a list of priority Resources from the server.
method
jira.client.JIRA.priority(id:str) -> PriorityGet a priority Resource from the server.
method
jira.client.JIRA.project(id:str, expand:str | None=None) -> ProjectGet a project Resource from the server.
method
jira.client.JIRA.project_components(project:str) -> list[Component]Get a list of component Resources present on a project.
method
jira.client.JIRA.project_issue_security_level_scheme(project:str) -> IssueSecurityLevelSchemeGet a IssueSecurityLevelScheme Resource from the server.
method
jira.client.JIRA.project_notification_scheme(project:str) -> NotificationSchemeGet a NotificationScheme Resource from the server.
method
jira.client.JIRA.project_permissionscheme(project:str) -> PermissionSchemeGet a PermissionScheme Resource from the server.
method
jira.client.JIRA.project_priority_scheme(project:str) -> PrioritySchemeGet a PriorityScheme Resource from the server.
method
jira.client.JIRA.project_role(project:str, id:str) -> RoleGet a role Resource.
method
jira.client.JIRA.project_roles(project:str) -> dict[str, dict[str, str]]Get a dict of role names to resource locations for a project.
method
jira.client.JIRA.project_versions(project:str) -> list[Version]Get a list of version Resources present on a project.
method
jira.client.JIRA.project_workflow_scheme(project:str) -> WorkflowSchemeGet a WorkflowScheme Resource from the server.
method
jira.client.JIRA.reindex(force:bool=False, background:bool=True) -> boolStart jira re-indexing.
method
jira.client.JIRA.remote_link(issue:str | int, id:str) -> RemoteLinkGet a remote link Resource from the server.
method
jira.client.JIRA.remote_links(issue:str | int) -> list[RemoteLink]Get a list of remote link Resources from an issue.
method
jira.client.JIRA.remove_group(groupname:str) -> boolDelete a group from the Jira instance.
method
jira.client.JIRA.remove_user_from_group(username:str, groupname:str) -> boolRemove a user from a group.
method
jira.client.JIRA.remove_watcher(issue:str | int, watcher:str) -> ResponseRemove a user from an issue's watch list.
method
jira.client.JIRA.removed_issues(board_id:str, sprint_id:str)Return the completed issues for the sprint.
method
jira.client.JIRA.rename_user(old_user:str, new_user:str)Rename a Jira user.
method
jira.client.JIRA.rename_version(project:str, old_name:str, new_name:str) -> NoneRename a version Resource on a project.
method
jira.client.JIRA.request_types(service_desk:ServiceDesk) -> list[RequestType]Returns request types supported by a service desk instance.
method
jira.client.JIRA.resolution(id:str) -> ResolutionGet a resolution Resource from the server.
method
jira.client.JIRA.resolutions() -> list[Resolution]Get a list of resolution Resources from the server.
method
jira.client.JIRA.role() -> list[dict[str, Any]]Return Jira role information.
method
jira.client.JIRA.security_level(id:str) -> SecurityLevelGet a security level Resource.
method
jira.client.JIRA.server_info() -> dict[str, Any]Get a dict of server information for this Jira instance.
method
jira.client.JIRA.server_url() -> strReturn the server url.
method
jira.client.JIRA.service_desk(id:str) -> ServiceDeskGet a Service Desk Resource from the server.
method
jira.client.JIRA.set_application_property(key:str, value:str)Set the application property.
method
jira.client.JIRA.set_dashboard_item_property(dashboard_id:str, item_id:str, property_key:str, value:dict[str, Any]) -> DashboardItemPropertySet a dashboard item property.
method
jira.client.JIRA.set_project_avatar(project:str, avatar:str)Set a project's avatar.
method
jira.client.JIRA.set_user_avatar(username:str, avatar:str) -> ResponseSet a user's avatar.
method
jira.client.JIRA.sprint(id:int) -> SprintReturn the information about a sprint.
method
jira.client.JIRA.sprint_info(board_id:str, sprint_id:str) -> dict[str, Any]Return the information about a sprint.
method
jira.client.JIRA.sprints(board_id:int, extended:bool | None=None, startAt:int=0, maxResults:int=50, state:str | None=None) -> ResultList[Sprint]Get a list of sprint Resources.
method
jira.client.JIRA.status(id:str) -> StatusGet a status Resource from the server.
method
jira.client.JIRA.statuscategory(id:int) -> StatusCategoryGet a status category Resource from the server.
method
jira.client.JIRA.statuses() -> list[Status]Get a list of all status Resources from the server.
method
jira.client.JIRA.update_dashboard_automatic_refresh_minutes(id:str, minutes:int) -> ResponseUpdate the automatic refresh interval of a dashboard.
method
jira.client.JIRA.update_sprint(id:str | int, name:str | None=None, startDate:Any | None=None, endDate:Any | None=None, state:str | None=None, goal:str | None=None) -> dict[str, Any]Updates the sprint with the given values.
method
jira.client.JIRA.user(id:str, expand:Any | None=None) -> UserGet a user Resource from the server.
method
jira.client.JIRA.user_avatars(username:str) -> dict[str, Any]Get a dict of avatars for the specified user.
method
jira.client.JIRA.version(id:str, expand:Any | None=None) -> VersionGet a version Resource.
method
jira.client.JIRA.votes(issue:str | int) -> VotesGet a votes Resource from the server.
method
jira.client.JIRA.watchers(issue:str | int) -> WatchersGet a watchers Resource from the server for an issue.
method
jira.client.JIRA.worklog(issue:str | int, id:str) -> WorklogGet a specific worklog Resource from the server.
method
jira.client.JIRA.worklogs(issue:str | int) -> list[Worklog]Get a list of worklog Resources from the server for an issue.
class
jira.client.JiraCookieAuthJira Cookie Authentication.
method
jira.client.JiraCookieAuth.handle_401(response:requests.Response, **kwargs) -> requests.ResponseRefresh cookies if the session cookie has expired.
class
jira.client.TokenAuthBearer Token Authentication.
func
jira.client.cloud_api(client_method:Callable) -> CallableA convenience decorator to check if the Jira instance is cloud.
func
jira.config.findfile(path)Find the file named path in the sys.path.
class
jira.exceptions.JIRAErrorGeneral error raised for all problems in operation of the client.
class
jira.exceptions.NotJIRAInstanceErrorRaised in the case an object is not a JIRA instance.
func
jira.resilientsession.parse_error_msg(resp:Response) -> strParse a Jira Error messages from the Response and join them by comma.
func
jira.resilientsession.parse_errors(resp:Response) -> list[str]Parse a Jira Error messages from the Response.
func
jira.resilientsession.raise_on_error(resp:Response | None, **kwargs) -> TypeGuard[Response]Handle errors from a Jira Request.
class
jira.resources.AgileResourceA generic Agile resource.
class
jira.resources.AttachmentAn issue attachment.
method
jira.resources.Attachment.get()Return the file content as a string.
class
jira.resources.BoardAn Agile board.
class
jira.resources.CommentAn issue comment.
class
jira.resources.ComponentA project component.
method
jira.resources.Component.delete(moveIssuesTo:str | None=None)Delete this component from the server.
class
jira.resources.CustomFieldOptionAn existing option for a custom issue field.
class
jira.resources.CustomerA Service Desk customer.
class
jira.resources.DashboardA Jira dashboard.
class
jira.resources.DashboardGadgetA jira dashboard gadget.
method
jira.resources.DashboardGadget.delete(dashboard_id:str) -> ResponseDelete gadget from dashboard.
method
jira.resources.DashboardGadget.update(dashboard_id:str, color:str | None=None, position:dict[str, Any] | None=None, title:str | None=None) -> DashboardGadgetUpdate this resource on the server.
class
jira.resources.DashboardItemPropertyA jira dashboard item.
method
jira.resources.DashboardItemProperty.delete(dashboard_id:str, item_id:str) -> ResponseDelete dashboard item property.
method
jira.resources.DashboardItemProperty.update(dashboard_id:str, item_id:str, value:dict[str, Any]) -> DashboardItemPropertyUpdate this resource on the server.
class
jira.resources.DashboardItemPropertyKeyA jira dashboard item property key.
class
jira.resources.FieldAn issue field.
class
jira.resources.FilterAn issue navigator filter.
class
jira.resources.GroupA Jira user group.
class
jira.resources.IssueA Jira issue.
method
jira.resources.Issue.delete(deleteSubtasks=False)Delete this issue from the server.
method
jira.resources.Issue.get_field(field_name:str) -> AnyObtain the (parsed) value from the Issue's field.
class
jira.resources.IssueLinkLink between two issues.
class
jira.resources.IssueLinkTypeType of link between two issues.
class
jira.resources.IssuePropertyCustom data against an issue.
class
jira.resources.IssueSecurityLevelSchemeIssueSecurityLevelScheme information on a project.
class
jira.resources.IssueTypeType of issue.
class
jira.resources.IssueTypeSchemeAn issue type scheme.
class
jira.resources.NotificationSchemeNotificationScheme information on a project.
class
jira.resources.PermissionSchemePermissionscheme information on a project.
class
jira.resources.PinnedCommentPinned comment on an issue.
class
jira.resources.PriorityPriority that can be set on an issue.
class
jira.resources.PrioritySchemePriorityScheme information on a project.
class
jira.resources.ProjectA Jira project.
class
jira.resources.PropertyHolderAn object for storing named attributes.
class
jira.resources.RemoteLinkA link to a remote application from an issue.
method
jira.resources.RemoteLink.update(object:dict[str, Any] | None, globalId=None, application=None, relationship=None)Update a RemoteLink.
class
jira.resources.RequestTypeA Service Desk Request Type.
class
jira.resources.ResolutionA resolution for an issue.
class
jira.resources.ResourceModels a URL-addressable resource in the Jira REST API.
method
jira.resources.Resource.delete(params:dict[str, Any] | None=None) -> Response | NoneDelete this resource from the server, passing the specified query parameters.
method
jira.resources.Resource.update(fields:dict[str, Any] | None=None, async_:bool | None=None, jira:JIRA | None=None, notify:bool=True, **kwargs:Any)Update this resource on the server.
class
jira.resources.RoleA role inside a project.
class
jira.resources.SecurityLevelA security level for an issue or project.
class
jira.resources.ServiceDeskA Service Desk.
class
jira.resources.SprintAn Agile sprint.
class
jira.resources.StatusStatus for an issue.
class
jira.resources.StatusCategoryStatusCategory for an issue.
class
jira.resources.UnknownResourceA Resource from Jira that is not (yet) supported.
class
jira.resources.UserA Jira user.
class
jira.resources.VersionA version of a project.
class
jira.resources.VotesVote information on an issue.
class
jira.resources.WatchersWatcher information on an issue.
class
jira.resources.WorkflowSchemeWorkflowScheme information on a project.
class
jira.resources.WorklogWorklog on an issue.
func
jira.resources.dict2resource(raw:dict[str, Any], top=None, options=None, session=None) -> PropertyHolder | type[Resource]Convert a dictionary into a Jira Resource object.
class
jira.utils.CaseInsensitiveDictA case-insensitive ``dict``-like object.
func
jira.utils.json_loads(resp:Response | None) -> AnyAttempts to load json the result of a response.
About this data
These signatures were extracted from the public source of pycontribs/jira
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.