3.2.0 • Published 6 months ago
@managed-api/jira-cloud-v3-sr-connect v3.2.0
ScriptRunner Connect Managed API for Jira Cloud
Managed API for Jira Cloud is an API Client for Jira Cloud by Adaptavist. You can read more about Managed APIs here.
This is ScriptRunner Connect runtime specific version of the Managed API (with sr-connect suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.
Supported API calls
- fetch
- Application
- Avatar
- Dashboard
- Filter
- Group
- GroupAndUserPicker
- Instance
- Issue
- assignIssue
- createIssue
- createIssues
- deleteIssue
- editIssue
- getChangeLogs
- getChangeLogsById
- getIssue
- sendNotification
- Attachment
- Comment
- Field
- getContexts
- getFields
- getFieldsPaginated
- Configuration
- Custom
- Link
- Metadata
- Navigator
- Notification
- Scheme
- Priority
- Property
- Resolution
- Search
- Security
- Transition
- Type
- Vote
- Watcher
- Worklog
- Jql
- Label
- Myself
- Permission
- Project
- createProject
- deleteProject
- deleteProjectAsync
- getProject
- getProjects
- getStatuses
- restoreDeletedProject
- updateProject
- Avatar
- Category
- Component
- IssueType
- Notification
- Scheme
- Permission
- Property
- Role
- Security
- Scheme
- Type
- Validation
- Version
- Screen
- User
- Workflow
- createWorkflow
- deleteWorkflow
- getWorkflows
- Scheme
- Status
- Transition
Constructing Managed API
In ScriptRunner Connect a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:
import { JiraCloudApi } from '@managed-api/jira-cloud-v3-sr-connect';
export default async function() {
const api = new JiraCloudApi('API_CONNECTION_ID');
}Contact
Feel free to drop ideas, suggestions or improvements into our Slack community channel.
Changelog
3.2.0
Added support for the following method:
- Get attachment content that can be used as
Issue.Attachment.getAttachmentContentorAll.getIssueAttachmentContent.
- Get attachment content that can be used as
3.1.0
Updated ADF
code_inline_nodeandformatted_text_inline_nodetypes.
3.0.0
Added support for the following method:
- Search for issues using JQL enhanced search that can be used as
Issue.Search.searchByJqlEnhancedSearchorAll.searchIssuesByJqlEnhancedSearch.
- Search for issues using JQL enhanced search that can be used as
Deprecated the following method:
- Search for issues using JQL that can be used as
Issue.Search.searchByJqlorAll.searchIssuesByJql.
- Search for issues using JQL that can be used as
Changed the following methods:
Jql.parseQuery: Makevalidationrequired in the request.Issue.Security.getMembers: ChangeissueSecurityLevelIdto string in the request.User.Search.findUserKeysByQuery: RemovemaxResultsfrom request and addmaxResult.Issue.getIssue: AddfailFast,expandandreturnIssueto request.User.Search.findIssuesAssignableToUser: AddissueIdto request.- Added optional properties to the responses of several methods.
2.3.0
Reverted back to 2.1.0 version
2.0.0
Breaking change: URL and query string parameters are now URL encoded, meaning if you encoded them explicitly before you have to remove your own encoding, otherwise they will get double encoded.
1.4.0
Added
nulltype to several fields inIssueCommonFields.
1.0.0
Added support to pass
keyproperty forprojectfield,nameproperty forissuetype,fixVersions,priority,versions,resolutionfields for the following methods:- Create issue that can be used as
Issue.createIssueorAll.createIssue. - Bulk create issue that can be used as
Issue.createIssuesorAll.createIssues. - Edit issue that can be used as
Issue.editIssueorAll.editIssue.
- Create issue that can be used as
0.22.0
Custom fields can be added to field object in following Issue methods:
- Create issue that can be used as
Issue.createIssueorAll.createIssue. - Bulk create issue that can be used as
Issue.createIssuesorAll.createIssues. - Edit issue that can be used as
Issue.editIssueorAll.editIssue.
- Create issue that can be used as
0.20.0
Added support for the following Issue.Priority method:
- Search priorities that can be used as
Issue.Priority.searchPrioritiesorAll.searchIssuePriorities.
- Search priorities that can be used as
The following methods are no longer deprecated:
- Get notification scheme that can be used as
Issue.Notification.Scheme.getSchemeorAll.getIssueNotificationScheme. - Get resolution that can be used as
Issue.Resolution.getResolutionorAll.getIssueResolution. - Get priority that can be used as
Issue.Priority.getPriorityorAll.getIssuePriority.
- Get notification scheme that can be used as
0.18.0
The following methods are deprecated:
- Get priorities that can be used as
Issue.Priority.getPrioritiesorAll.getIssuePriorities. - Get priority that can be used as
Issue.Priority.getPriorityorAll.getIssuePriority. - Get resolutions that can be used as
Issue.Resolution.getResolutionsorAll.getIssueResolutions. - Get resolution that can be used as
Issue.Resolution.getResolutionorAll.getIssueResolution. - Get notification scheme(https://developer.atlassian.com/cloud/jira/platform
- Get priorities that can be used as