-
Notifications
You must be signed in to change notification settings - Fork 37
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
base: main
Are you sure you want to change the base?
Conversation
ctreminiom
commented
Jan 12, 2025
- 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
// 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
// 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
// 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
// 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
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
} | ||
|
||
type BulkTransitionSubmitInputScheme struct { | ||
SelectedIssueIdsOrKeys []string `json:"selectedIssueIdsOrKeys"` |
Check warning
Code scanning / Revive (reported by Codacy)
struct field SelectedIssueIdsOrKeys should be SelectedIssueIDsOrKeys Warning
@@ -0,0 +1,14 @@ | |||
package jira |
Check warning
Code scanning / Revive (reported by Codacy)
should have a package comment Warning
b01515f
to
27c6b2d
Compare
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
"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
} | ||
} | ||
|
||
type BulkOperationsService struct { |
Check warning
Code scanning / Revive (reported by Codacy)
exported type BulkOperationsService should have comment or be unexported Warning
@@ -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
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
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
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
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
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
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