Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Mapped Issue Bulk Operation API #342

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ctreminiom
Copy link
Owner

  1. Added the ability to execute the JIRA API Bulk operations (WIP)

- To add, provide the url with the desired URL value.
- To clear, set url to an empty string.
*/
UrlFields []*JiraUrlFieldScheme `json:"urlFields,omitempty"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field UrlFields should be URLFields Warning

struct field UrlFields should be URLFields
// JiraCascadingSelectFieldScheme represents a cascading select field in Jira.
type JiraCascadingSelectFieldScheme struct {
ChildOptionValue *JiraSelectedOptionFieldSchemes `json:"childOptionValue,omitempty"`
FieldId string `json:"fieldId,omitempty"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field FieldId should be FieldID Warning

struct field FieldId should be FieldID
// JiraDateFieldScheme represents a date field in Jira.
type JiraDateFieldScheme struct {
Date *JiraDateInputScheme `json:"date,omitempty"`
FieldId string `json:"fieldId,omitempty"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field FieldId should be FieldID Warning

struct field FieldId should be FieldID
// JiraMultipleVersionPickerFieldScheme represents a multiple version picker field in Jira.
type JiraMultipleVersionPickerFieldScheme struct {
BulkEditMultiSelectFieldOption string `json:"bulkEditMultiSelectFieldOption,omitempty"`
FieldId string `json:"fieldId,omitempty"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field FieldId should be FieldID Warning

struct field FieldId should be FieldID
// JiraUrlFieldScheme represents a URL field in Jira.
type JiraUrlFieldScheme struct {
FieldID string `json:"fieldId,omitempty"`
Url string `json:"url,omitempty"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field Url should be URL Warning

struct field Url should be URL
Url string `json:"url,omitempty"`
}

type BulkTransitionSubmitInputScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type BulkTransitionSubmitInputScheme should have comment or be unexported Warning

exported type BulkTransitionSubmitInputScheme should have comment or be unexported
}

type BulkTransitionSubmitInputScheme struct {
SelectedIssueIdsOrKeys []string `json:"selectedIssueIdsOrKeys"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field SelectedIssueIdsOrKeys should be SelectedIssueIDsOrKeys Warning

struct field SelectedIssueIdsOrKeys should be SelectedIssueIDsOrKeys
@@ -0,0 +1,14 @@
package jira

Check warning

Code scanning / Revive (reported by Codacy)

should have a package comment Warning

should have a package comment
@ctreminiom ctreminiom changed the title ✨ Mapped more endpoints. ✨ Mapped Issue Bulk Operation API Feb 8, 2025
@ctreminiom ctreminiom force-pushed the feature/new-endpoints branch from b01515f to 27c6b2d Compare February 8, 2025 08:30
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@@ -0,0 +1,335 @@
package internal

Check warning

Code scanning / Revive (reported by Codacy)

should have a package comment Warning

should have a package comment
"strings"
)

func NewBulkOperationsService(client service.Connector, version string) *BulkOperationsService {

Check warning

Code scanning / Revive (reported by Codacy)

exported function NewBulkOperationsService should have comment or be unexported Warning

exported function NewBulkOperationsService should have comment or be unexported
}
}

type BulkOperationsService struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type BulkOperationsService should have comment or be unexported Warning

exported type BulkOperationsService should have comment or be unexported
@@ -0,0 +1,409 @@
package models

type IssueBulkEditPayloadScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type IssueBulkEditPayloadScheme should have comment or be unexported Warning

exported type IssueBulkEditPayloadScheme should have comment or be unexported
TransitionID string `json:"transitionId"`
}

type BulkEditGetFieldsScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type BulkEditGetFieldsScheme should have comment or be unexported Warning

exported type BulkEditGetFieldsScheme should have comment or be unexported
StartingAfter string `json:"startingAfter,omitempty"`
}

type IssueBulkTransitionForWorkflowScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type IssueBulkTransitionForWorkflowScheme should have comment or be unexported Warning

exported type IssueBulkTransitionForWorkflowScheme should have comment or be unexported
Issues []string `json:"issues,omitempty"`
}

type SimplifiedIssueTransitionScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type SimplifiedIssueTransitionScheme should have comment or be unexported Warning

exported type SimplifiedIssueTransitionScheme should have comment or be unexported
TransitionName string `json:"transitionName,omitempty"`
}

type IssueTransitionStatusScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type IssueTransitionStatusScheme should have comment or be unexported Warning

exported type IssueTransitionStatusScheme should have comment or be unexported
StatusName string `json:"statusName,omitempty"`
}

type BulkOperationProgressScheme struct {

Check warning

Code scanning / Revive (reported by Codacy)

exported type BulkOperationProgressScheme should have comment or be unexported Warning

exported type BulkOperationProgressScheme should have comment or be unexported
TotalIssueCount int `json:"totalIssueCount"`
Updated int64 `json:"updated"`
SubmittedBy struct {
AccountId string `json:"accountId"`

Check warning

Code scanning / Revive (reported by Codacy)

struct field AccountId should be AccountID Warning

struct field AccountId should be AccountID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant