package jira

Import Path
	gitlab.com/pcanilho/go-jira (on go.dev)

Dependency Relation
	imports 21 packages, and imported by 5 packages


Package-Level Type Names (total 138, in which 129 are exported)
/* sort exporteds by: | */
Actor represents a Jira actor ActorUser *ActorUser AvatarURL string DisplayName string ID int Name string Type string
ActorUser contains the account id of the actor/user AccountID string
AffectsVersion represents a software release which is affected by an issue. Archived *bool Description string ID string Name string // Unlike other IDs, this is returned as a number ReleaseDate string Released *bool Self string StartDate string UserReleaseDate string
Attachment represents a Jira attachment Author *User Content string Created string Filename string ID string MimeType string Self string Size int Thumbnail string func (*IssueService).PostAttachment(issueID string, r io.Reader, attachmentName string) (*[]Attachment, *Response, error) func (*IssueService).PostAttachmentWithContext(ctx context.Context, issueID string, r io.Reader, attachmentName string) (*[]Attachment, *Response, error)
AuthenticationService handles authentication for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#authentication AcquireSessionCookie wraps AcquireSessionCookieWithContext using the background context. Deprecated: Use CookieAuthTransport instead AcquireSessionCookieWithContext creates a new session for a user in Jira. Once a session has been successfully created it can be used to access any of Jira's remote APIs and also the web UI by passing the appropriate HTTP Cookie header. The header will by automatically applied to every API request. Note that it is generally preferrable to use HTTP BASIC authentication with the REST API. However, this resource may be used to mimic the behaviour of Jira's log-in page (e.g. to display log-in errors to a user). Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session Deprecated: Use CookieAuthTransport instead Authenticated reports if the current Client has authentication details for Jira GetCurrentUser wraps GetCurrentUserWithContext using the background context. GetCurrentUserWithContext gets the details of the current user. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session Logout wraps LogoutWithContext using the background context. Deprecated: Use CookieAuthTransport to create base client. Logging out is as simple as not using the client anymore LogoutWithContext logs out the current user that has been authenticated and the session in the client is destroyed. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session Deprecated: Use CookieAuthTransport to create base client. Logging out is as simple as not using the client anymore SetBasicAuth sets username and password for the basic auth against the Jira instance. Deprecated: Use BasicAuthTransport instead
AvatarUrls represents different dimensions of avatars / images Four8X48 string One6X16 string Three2X32 string Two4X24 string
BasicAuthTransport is an http.RoundTripper that authenticates all requests using HTTP Basic Authentication with the provided username and password. Password string Transport is the underlying HTTP transport to use when making requests. It will default to http.DefaultTransport if nil. Username string Client returns an *http.Client that makes requests that are authenticated using HTTP Basic Authentication. This is a nice little bit of sugar so we can just get the client instead of creating the client in the calling code. If it's necessary to send more information on client init, the calling code can always skip this and set the transport itself. RoundTrip implements the RoundTripper interface. We just add the basic auth and return the RoundTripper for this transport type. *T : net/http.RoundTripper
Board represents a Jira agile board FilterID int ID int Name string Self string Type string func (*BoardService).CreateBoard(board *Board) (*Board, *Response, error) func (*BoardService).CreateBoardWithContext(ctx context.Context, board *Board) (*Board, *Response, error) func (*BoardService).DeleteBoard(boardID int) (*Board, *Response, error) func (*BoardService).DeleteBoardWithContext(ctx context.Context, boardID int) (*Board, *Response, error) func (*BoardService).GetBoard(boardID int) (*Board, *Response, error) func (*BoardService).GetBoardWithContext(ctx context.Context, boardID int) (*Board, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.BoardController.GetBoard(string) (*Board, error) func (*BoardService).CreateBoard(board *Board) (*Board, *Response, error) func (*BoardService).CreateBoardWithContext(ctx context.Context, board *Board) (*Board, *Response, error)
BoardConfiguration represents a boardConfiguration of a jira board ColumnConfig BoardConfigurationColumnConfig Filter BoardConfigurationFilter ID int Location BoardConfigurationLocation Name string Self string SubQuery BoardConfigurationSubQuery func (*BoardService).GetBoardConfiguration(boardID int) (*BoardConfiguration, *Response, error) func (*BoardService).GetBoardConfigurationWithContext(ctx context.Context, boardID int) (*BoardConfiguration, *Response, error)
BoardConfigurationColumn lists the name of the board with the statuses that maps to a particular column Name string Status []BoardConfigurationColumnStatus
BoardConfigurationColumnConfig lists the columns for a given board in the order defined in the column configuration with constrainttype (none, issueCount, issueCountExclSubs) Columns []BoardConfigurationColumn ConstraintType string
BoardConfigurationColumnStatus represents a status in the column configuration ID string Self string
BoardConfigurationFilter reference to the filter used by the given board. ID string Self string
BoardConfigurationLocation reference to the container that the board is located in ID string Key string Name string Self string Type string
BoardConfigurationSubQuery (Kanban only) - JQL subquery used by the given board. Query string
BoardListOptions specifies the optional parameters to the BoardService.GetList BoardType filters results to boards of the specified type. Valid values: scrum, kanban. Name filters results to boards that match or partially match the specified name. ProjectKeyOrID filters results to boards that are relevant to a project. Relevance meaning that the JQL filter defined in board contains a reference to a project. SearchOptions SearchOptions Expand: Expand specific sections in the returned issues SearchOptions.Fields []string MaxResults: The maximum number of projects to return per page. Default: 50. StartAt: The starting index of the returned projects. Base index: 0. ValidateQuery: The validateQuery param offers control over whether to validate and how strictly to treat the validation. Default: strict. func (*BoardService).GetAllBoards(opt *BoardListOptions) (*BoardsList, *Response, error) func (*BoardService).GetAllBoardsWithContext(ctx context.Context, opt *BoardListOptions) (*BoardsList, *Response, error)
BoardService handles Agile Boards for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira-software/REST/server/ CreateBoard wraps CreateBoardWithContext using the background context. CreateBoardWithContext creates a new board. Board name, type and filter Id is required. name - Must be less than 255 characters. type - Valid values: scrum, kanban filterId - Id of a filter that the user has permissions to view. Note, if the user does not have the 'Create shared objects' permission and tries to create a shared board, a private board will be created instead (remember that board sharing depends on the filter sharing). Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-createBoard DeleteBoard wraps DeleteBoardWithContext using the background context. DeleteBoardWithContext will delete an agile board. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-deleteBoard GetAllBoards wraps GetAllBoardsWithContext using the background context. GetAllBoardsWithContext will returns all boards. This only includes boards that the user has permission to view. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getAllBoards GetAllSprints wraps GetAllSprintsWithContext using the background context. GetAllSprintsWithContext will return all sprints from a board, for a given board Id. This only includes sprints that the user has permission to view. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board/{boardId}/sprint GetAllSprintsWithOptions wraps GetAllSprintsWithOptionsWithContext using the background context. GetAllSprintsWithOptionsWithContext will return sprints from a board, for a given board Id and filtering options This only includes sprints that the user has permission to view. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board/{boardId}/sprint GetBoard wraps GetBoardWithContext using the background context. GetBoardConfiguration wraps GetBoardConfigurationWithContext using the background context. GetBoardConfigurationWithContext will return a board configuration for a given board Id Jira API docs:https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-board-boardId-configuration-get GetBoardWithContext will returns the board for the given boardID. This board will only be returned if the user has permission to view it. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getBoard
BoardsList reflects a list of agile boards IsLast bool MaxResults int StartAt int Total int Values []Board func (*BoardService).GetAllBoards(opt *BoardListOptions) (*BoardsList, *Response, error) func (*BoardService).GetAllBoardsWithContext(ctx context.Context, opt *BoardListOptions) (*BoardsList, *Response, error)
Changelog reflects the change log of an issue Histories []ChangelogHistory
ChangelogHistory reflects one single changelog history entry Author User Created string Id string Items []ChangelogItems ( T) CreatedTime() (time.Time, error)
ChangelogItems reflects one single changelog item of a history item Field string FieldType string From interface{} FromString string To interface{} ToString string
A Client manages communication with the Jira API. Services used for talking to different parts of the Jira API. Board *BoardService Component *ComponentService Field *FieldService Filter *FilterService Group *GroupService Issue *IssueService IssueLinkType *IssueLinkTypeService Organization *OrganizationService PermissionScheme *PermissionSchemeService Priority *PriorityService Project *ProjectService Resolution *ResolutionService Role *RoleService ServiceDesk *ServiceDeskService Sprint *SprintService Status *StatusService StatusCategory *StatusCategoryService User *UserService Version *VersionService Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. GetBaseURL will return you the Base URL. This is the same URL as in the NewClient constructor NewMultiPartRequest wraps NewMultiPartRequestWithContext using the background context. NewMultiPartRequestWithContext creates an API request including a multi-part file. A relative URL can be provided in urlStr, in which case it is resolved relative to the baseURL of the Client. If specified, the value pointed to by buf is a multipart form. NewRawRequest wraps NewRawRequestWithContext using the background context. NewRawRequestWithContext creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the baseURL of the Client. Allows using an optional native io.Reader for sourcing the request body. NewRequest wraps NewRequestWithContext using the background context. NewRequestWithContext creates an API request. A relative URL can be provided in urlStr, in which case it is resolved relative to the baseURL of the Client. If specified, the value pointed to by body is JSON encoded and included as the request body. func NewClient(httpClient httpClient, baseURL string) (*Client, error)
Comment represents a comment by a person to an issue in Jira. Author User Body string Created string ID string Name string Self string UpdateAuthor User Updated string Visibility CommentVisibility func (*IssueService).AddComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).AddCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.AddCommentToIssue(interface{}, string) (*Comment, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.AddCommentToIssue(interface{}, string) (*Comment, error) func (*IssueService).AddComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).AddCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error)
Comments represents a list of Comment. Comments []*Comment
CommentVisibility represents he visibility of a comment. E.g. Type could be "role" and Value "Administrators" Type string Value string
Component represents a "component" of a Jira issue. Components can be user defined in every Jira instance. Description string ID string Name string Self string
ComponentService handles components for the Jira instance / API.// Jira API docs: https://docs.atlassian.com/software/jira/docs/api/REST/7.10.1/#api/2/component Create wraps CreateWithContext using the background context. CreateWithContext creates a new Jira component based on the given options.
CookieAuthTransport is an http.RoundTripper that authenticates all requests using Jira's cookie-based authentication. Note that it is generally preferable to use HTTP BASIC authentication with the REST API. However, this resource may be used to mimic the behaviour of Jira's log-in page (e.g. to display log-in errors to a user). Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session AuthURL string Password string SessionObject is the authenticated cookie string.s It's passed in each call to prove the client is authenticated. Transport is the underlying HTTP transport to use when making requests. It will default to http.DefaultTransport if nil. Username string Client returns an *http.Client that makes requests that are authenticated using cookie authentication RoundTrip adds the session object to the request. *T : net/http.RoundTripper
CreateComponentOptions are passed to the ComponentService.Create function to create a new Jira component Assignee *User AssigneeType string Description string Lead *User LeadUserName string Name string Project string ProjectID int func (*ComponentService).Create(options *CreateComponentOptions) (*ProjectComponent, *Response, error) func (*ComponentService).CreateWithContext(ctx context.Context, options *CreateComponentOptions) (*ProjectComponent, *Response, error)
CreateMetaInfo contains information about fields and their attributed to create a ticket. Expand string Projects []*MetaProject GetProjectWithKey returns a project with "name" from the meta information received. If not found, this returns nil. The comparison of the name is case insensitive. GetProjectWithName returns a project with "name" from the meta information received. If not found, this returns nil. The comparison of the name is case insensitive. func (*IssueService).GetCreateMeta(projectkeys string) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithContext(ctx context.Context, projectkeys string) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithOptions(options *GetQueryOptions) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*CreateMetaInfo, *Response, error)
CreateTransitionPayload is used for creating new issue transitions Fields TransitionPayloadFields Transition TransitionPayload
CustomFields represents custom fields of Jira This can heavily differ between Jira instances func (*IssueService).GetCustomFields(issueID string) (CustomFields, *Response, error) func (*IssueService).GetCustomFieldsWithContext(ctx context.Context, issueID string) (CustomFields, *Response, error)
Date represents the Date definition of Jira as a time.Time of go MarshalJSON will transform the Date object into a short date string as Jira expects during the creation of a Jira request UnmarshalJSON will transform the Jira date into a time.Time during the transformation of the Jira JSON response T : encoding/json.Marshaler *T : encoding/json.Unmarshaler
EditMetaInfo contains information about fields and their attributed to edit a ticket. Fields tcontainer.MarshalMap func (*IssueService).GetEditMeta(issue *Issue) (*EditMetaInfo, *Response, error) func (*IssueService).GetEditMetaWithContext(ctx context.Context, issue *Issue) (*EditMetaInfo, *Response, error)
Key string Value interface{} func (*OrganizationService).GetProperty(organizationID int, propertyKey string) (*EntityProperty, *Response, error) func (*OrganizationService).GetPropertyWithContext(ctx context.Context, organizationID int, propertyKey string) (*EntityProperty, *Response, error)
Epic represents the epic to which an issue is associated Not that this struct does not process the returned "color" value Done bool ID int Key string Name string Self string Summary string
Error message from Jira See https://docs.atlassian.com/jira/REST/cloud/#error-responses ErrorMessages []string Errors map[string]string HTTPError error Error is a short string representing the error LongError is a full representation of the error as a string *T : error
Field represents a field of a Jira issue. ClauseNames []string Custom bool ID string Key string Name string Navigable bool Schema FieldSchema Searchable bool func (*FieldService).GetList() ([]Field, *Response, error) func (*FieldService).GetListWithContext(ctx context.Context) ([]Field, *Response, error)
FieldSchema represents a schema of a Jira field. Documentation: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-fields/#api-rest-api-2-field-get Custom string CustomID int64 Items string System string Type string
FieldService handles fields for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-Field GetList wraps GetListWithContext using the background context. GetListWithContext gets all fields from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-field-get
Filter represents a Filter in Jira Description string Favourite bool FavouritedCount int ID string Jql string Name string Owner User SearchURL string Self string SharePermissions []interface{} Subscriptions struct{Size int; Items []interface{}; MaxResults int; StartIndex int; EndIndex int} ViewURL string func (*FilterService).Get(filterID int) (*Filter, *Response, error) func (*FilterService).GetFavouriteList() ([]*Filter, *Response, error) func (*FilterService).GetFavouriteListWithContext(ctx context.Context) ([]*Filter, *Response, error) func (*FilterService).GetList() ([]*Filter, *Response, error) func (*FilterService).GetListWithContext(ctx context.Context) ([]*Filter, *Response, error) func (*FilterService).GetMyFilters(opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error) func (*FilterService).GetMyFiltersWithContext(ctx context.Context, opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error) func (*FilterService).GetWithContext(ctx context.Context, filterID int) (*Filter, *Response, error)
FilterSearchOptions specifies the optional parameters for the Search method https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-filter-search-get User account ID used to return filters with the matching owner.accountId. This parameter cannot be used with owner. Use expand to include additional information about filter in the response. This parameter accepts multiple values separated by a comma: - description Returns the description of the filter. - favourite Returns an indicator of whether the user has set the filter as a favorite. - favouritedCount Returns a count of how many users have set this filter as a favorite. - jql Returns the JQL query that the filter uses. - owner Returns the owner of the filter. - searchUrl Returns a URL to perform the filter's JQL query. - sharePermissions Returns the share permissions defined for the filter. - subscriptions Returns the users that are subscribed to the filter. - viewUrl Returns a URL to view the filter. String used to perform a case-insensitive partial match with name. Group name used to returns filters that are shared with a group that matches sharePermissions.group.groupname. The maximum number of items to return per page. The maximum is 100. Default: 50, Format: int32 Orders the results using one of these filter properties. - `description` Orders by filter `description`. Note that this ordering works independently of whether the expand to display the description field is in use. - `favourite_count` Orders by `favouritedCount`. - `is_favourite` Orders by `favourite`. - `id` Orders by filter `id`. - `name` Orders by filter `name`. - `owner` Orders by `owner.accountId`. Default: `name` Valid values: id, name, description, owner, favorite_count, is_favorite, -id, -name, -description, -owner, -favorite_count, -is_favorite Project ID used to returns filters that are shared with a project that matches sharePermissions.project.id. Format: int64 The index of the first item to return in a page of results (page offset). Default: 0, Format: int64 func (*FilterService).Search(opt *FilterSearchOptions) (*FiltersList, *Response, error) func (*FilterService).SearchWithContext(ctx context.Context, opt *FilterSearchOptions) (*FiltersList, *Response, error)
FilterService handles fields for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Filter Get wraps GetWithContext using the background context. GetFavouriteList wraps GetFavouriteListWithContext using the background context. GetFavouriteListWithContext retrieves the user's favourited filters from Jira GetList wraps GetListWithContext using the background context. GetListWithContext retrieves all filters from Jira GetMyFilters wraps GetMyFiltersWithContext using the background context. GetMyFiltersWithContext retrieves the my Filters. https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-filter-my-get GetWithContext retrieves a single Filter from Jira Search wraps SearchWithContext using the background context. SearchWithContext will search for filter according to the search options Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-filter-search-get
FiltersList reflects a list of filters IsLast bool MaxResults int StartAt int Total int Values []FiltersListItem func (*FilterService).Search(opt *FilterSearchOptions) (*FiltersList, *Response, error) func (*FilterService).SearchWithContext(ctx context.Context, opt *FilterSearchOptions) (*FiltersList, *Response, error)
FiltersListItem represents a Filter of FiltersList in Jira Description string Favourite bool FavouritedCount int ID string Jql string Name string Owner User SearchURL string Self string SharePermissions []interface{} Subscriptions []struct{ID int; User User} ViewURL string
FixVersion represents a software release in which an issue is fixed. Archived *bool Description string ID string Name string // Unlike other IDs, this is returned as a number ReleaseDate string Released *bool Self string StartDate string UserReleaseDate string
GetAllSprintsOptions specifies the optional parameters to the BoardService.GetList SearchOptions SearchOptions Expand: Expand specific sections in the returned issues SearchOptions.Fields []string MaxResults: The maximum number of projects to return per page. Default: 50. StartAt: The starting index of the returned projects. Base index: 0. ValidateQuery: The validateQuery param offers control over whether to validate and how strictly to treat the validation. Default: strict. State filters results to sprints in the specified states, comma-separate list func (*BoardService).GetAllSprintsWithOptions(boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) func (*BoardService).GetAllSprintsWithOptionsWithContext(ctx context.Context, boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error)
GetMyFiltersQueryOptions specifies the optional parameters for the Get My Filters method Expand string IncludeFavourites bool func (*FilterService).GetMyFilters(opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error) func (*FilterService).GetMyFiltersWithContext(ctx context.Context, opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error)
GetQueryOptions specifies the optional parameters for the Get Issue methods Expand string Fields is the list of fields to return for the issue. By default, all fields are returned. FieldsByKeys if true then fields in issues will be referenced by keys instead of ids ProjectKeys string Properties is the list of properties to return for the issue. By default no properties are returned. UpdateHistory bool func (*IssueService).Get(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*IssueService).GetCreateMetaWithOptions(options *GetQueryOptions) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*CreateMetaInfo, *Response, error) func (*IssueService).GetWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*ProjectService).ListWithOptions(options *GetQueryOptions) (*ProjectList, *Response, error) func (*ProjectService).ListWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*ProjectList, *Response, error) func (*SprintService).GetIssue(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*SprintService).GetIssueWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.GetIssue(string, *GetQueryOptions) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.GetIssue(string, *GetQueryOptions) (*Issue, error)
GetWorklogsQueryOptions specifies the optional parameters for the Get Worklogs method Expand string MaxResults int32 StartAt int64 StartedAfter int64
Group represents a Jira group AdditionalProperties bool ID string Properties groupProperties Title string Type string func (*GroupService).Add(groupname string, username string) (*Group, *Response, error) func (*GroupService).AddWithContext(ctx context.Context, groupname string, username string) (*Group, *Response, error)
GroupMember reflects a single member of a group AccountID string AccountType string Active bool DisplayName string EmailAddress string Key string Name string Self string TimeZone string func (*GroupService).Get(name string) ([]GroupMember, *Response, error) func (*GroupService).GetWithContext(ctx context.Context, name string) ([]GroupMember, *Response, error) func (*GroupService).GetWithOptions(name string, options *GroupSearchOptions) ([]GroupMember, *Response, error) func (*GroupService).GetWithOptionsWithContext(ctx context.Context, name string, options *GroupSearchOptions) ([]GroupMember, *Response, error)
GroupSearchOptions specifies the optional parameters for the Get Group methods IncludeInactiveUsers bool MaxResults int StartAt int func (*GroupService).GetWithOptions(name string, options *GroupSearchOptions) ([]GroupMember, *Response, error) func (*GroupService).GetWithOptionsWithContext(ctx context.Context, name string, options *GroupSearchOptions) ([]GroupMember, *Response, error)
GroupService handles Groups for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira/REST/server/#api/2/group Add wraps AddWithContext using the background context. AddWithContext adds user to group Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/group-addUserToGroup Get wraps GetWithContext using the background context. GetWithContext returns a paginated list of users who are members of the specified group and its subgroups. Users in the page are ordered by user names. User of this resource is required to have sysadmin or admin permissions. Jira API docs: https://docs.atlassian.com/jira/REST/server/#api/2/group-getUsersFromGroup WARNING: This API only returns the first page of group members GetWithOptions wraps GetWithOptionsWithContext using the background context. GetWithOptionsWithContext returns a paginated list of members of the specified group and its subgroups. Users in the page are ordered by user names. User of this resource is required to have sysadmin or admin permissions. Jira API docs: https://docs.atlassian.com/jira/REST/server/#api/2/group-getUsersFromGroup Remove wraps RemoveWithContext using the background context. RemoveWithContext removes user from group Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/group-removeUserFromGroup
Expand string Parameter string Type string
Issue represents a Jira issue. Changelog *Changelog Expand string Fields *IssueFields ID string Key string Names map[string]string RenderedFields *IssueRenderedFields Self string Transitions []Transition func InitIssueWithMetaAndFields(metaProject *MetaProject, metaIssuetype *MetaIssueType, fieldsConfig map[string]string) (*Issue, error) func (*IssueService).Create(issue *Issue) (*Issue, *Response, error) func (*IssueService).CreateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).Get(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*IssueService).GetWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*IssueService).Search(jql string, options *SearchOptions) ([]Issue, *Response, error) func (*IssueService).SearchWithContext(ctx context.Context, jql string, options *SearchOptions) ([]Issue, *Response, error) func (*IssueService).Update(issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*IssueService).UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*SprintService).GetIssue(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*SprintService).GetIssuesForSprint(sprintID int) ([]Issue, *Response, error) func (*SprintService).GetIssuesForSprintWithContext(ctx context.Context, sprintID int) ([]Issue, *Response, error) func (*SprintService).GetIssueWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.BoardController.GetBoardIssues(string) ([]Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.CloneIssue(interface{}) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.CreateIssue(*internal.IssueCreationOptions) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.GetIssue(string, *GetQueryOptions) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.SearchIssues(string, *SearchOptions, int) ([]Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.UpdateIssue(interface{}, map[string]interface{}) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.CloneIssue(interface{}) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.CreateIssue(*internal.IssueCreationOptions) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.GetIssue(string, *GetQueryOptions) (*Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.SearchIssues(string, *SearchOptions, int) ([]Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.UpdateIssue(interface{}, map[string]interface{}) (*Issue, error) func (*IssueService).Create(issue *Issue) (*Issue, *Response, error) func (*IssueService).CreateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).GetEditMeta(issue *Issue) (*EditMetaInfo, *Response, error) func (*IssueService).GetEditMetaWithContext(ctx context.Context, issue *Issue) (*EditMetaInfo, *Response, error) func (*IssueService).Update(issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*IssueService).UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func gitlab.com/pcanilho/go-jira-cli/cmd/interactive.NewIssueListMenu(issues []Issue, previous interactive.Menu) interactive.Menu
IssueFields represents single fields of a Jira issue. Every Jira issue has several fields attached. AffectsVersions []*AffectsVersion AggregateProgress *Progress AggregateTimeEstimate int AggregateTimeOriginalEstimate int AggregateTimeSpent int Assignee *User Attachments []*Attachment Comments *Comments Components []*Component Created Time Creator *User Description string Duedate Date Epic *Epic TODO Missing fields * "workratio": -1, * "lastViewed": null, * "environment": null, FixVersions []*FixVersion IssueLinks []*IssueLink Labels []string Parent *Parent Priority *Priority Progress *Progress Project Project Reporter *User Resolution *Resolution Resolutiondate Time Sprint *Sprint Status *Status Subtasks []*Subtasks Summary string TimeEstimate int TimeOriginalEstimate int TimeSpent int TimeTracking *TimeTracking Type IssueType Unknowns tcontainer.MarshalMap Updated Time Watches *Watches Worklog *Worklog MarshalJSON is a custom JSON marshal function for the IssueFields structs. It handles Jira custom fields and maps those from / to "Unknowns" key. UnmarshalJSON is a custom JSON marshal function for the IssueFields structs. It handles Jira custom fields and maps those from / to "Unknowns" key. *T : encoding/json.Marshaler *T : encoding/json.Unmarshaler
IssueLinkType represents a type of a link between to issues in Jira. Typical issue link types are "Related to", "Duplicate", "Is blocked by", etc. ID string Inward string Name string Outward string Self string func (*IssueLinkTypeService).Create(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).CreateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Get(ID string) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetList() ([]IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetListWithContext(ctx context.Context) ([]IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetWithContext(ctx context.Context, ID string) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Update(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).UpdateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Create(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).CreateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Update(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).UpdateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error)
IssueLinkTypeService handles issue link types for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-group-Issue-link-types Create wraps CreateWithContext using the background context. CreateWithContext creates an issue link type in Jira. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issueLinkType-post Delete wraps DeleteWithContext using the background context. DeleteWithContext deletes an issue link type based on provided ID. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issueLinkType-issueLinkTypeId-delete Get wraps GetWithContext using the background context. GetList wraps GetListWithContext using the background context. GetListWithContext gets all of the issue link types from Jira. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issueLinkType-get GetWithContext gets info of a specific issue link type from Jira. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issueLinkType-issueLinkTypeId-get Update wraps UpdateWithContext using the background context. UpdateWithContext updates an issue link type. The issue is found by key. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issueLinkType-issueLinkTypeId-put
IssueRenderedFields represents rendered fields of a Jira issue. Not all IssueFields are rendered. Comments *Comments Created string Description string Duedate string TODO Missing fields * "aggregatetimespent": null, * "workratio": -1, * "lastViewed": null, * "aggregatetimeoriginalestimate": null, * "aggregatetimeestimate": null, * "environment": null, Updated string
IssueService handles Issues for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue AddComment wraps AddCommentWithContext using the background context. AddCommentWithContext adds a new comment to issueID. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-addComment AddLink wraps AddLinkWithContext using the background context. AddLinkWithContext adds a link between two issues. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issueLink AddRemoteLink wraps AddRemoteLinkWithContext using the background context. AddRemoteLinkWithContext adds a remote link to issueID. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-remotelink-post AddWatcher wraps AddWatcherWithContext using the background context. AddWatcherWithContext adds watcher to the given issue Jira API docs: https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/issue-addWatcher AddWorklogRecord wraps AddWorklogRecordWithContext using the background context. AddWorklogRecordWithContext adds a new worklog record to issueID. https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-worklog-post Create wraps CreateWithContext using the background context. CreateWithContext creates an issue or a sub-task from a JSON representation. Creating a sub-task is similar to creating a regular issue, with two important differences: The issueType field must correspond to a sub-task issue type and you must provide a parent field in the issue create request containing the id or key of the parent issue. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-createIssues Delete wraps DeleteWithContext using the background context. DeleteAttachment wraps DeleteAttachmentWithContext using the background context. DeleteAttachmentWithContext deletes an attachment of a given attachmentID DeleteComment wraps DeleteCommentWithContext using the background context. DeleteCommentWithContext Deletes a comment from an issueID. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-issue-issueIdOrKey-comment-id-delete DeleteLink wraps DeleteLinkWithContext using the background context. DeleteLinkWithContext deletes a link of a given linkID DeleteWithContext will delete a specified issue. DoTransition wraps DoTransitionWithContext using the background context. DoTransitionWithContext performs a transition on an issue. When performing the transition you can update or set other issue fields. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-doTransition DoTransitionWithPayload wraps DoTransitionWithPayloadWithContext using the background context. DoTransitionWithPayloadWithContext performs a transition on an issue using any payload. When performing the transition you can update or set other issue fields. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-doTransition DownloadAttachment wraps DownloadAttachmentWithContext using the background context. DownloadAttachmentWithContext returns a Response of an attachment for a given attachmentID. The attachment is in the Response.Body of the response. This is an io.ReadCloser. The caller should close the resp.Body. Get wraps GetWithContext using the background context. GetCreateMeta wraps GetCreateMetaWithContext using the background context. GetCreateMetaWithContext makes the api call to get the meta information required to create a ticket GetCreateMetaWithOptions wraps GetCreateMetaWithOptionsWithContext using the background context. GetCreateMetaWithOptionsWithContext makes the api call to get the meta information without requiring to have a projectKey GetCustomFields wraps GetCustomFieldsWithContext using the background context. GetCustomFieldsWithContext returns a map of customfield_* keys with string values GetEditMeta wraps GetEditMetaWithContext using the background context. GetEditMetaWithContext makes the api call to get the edit meta information for an issue GetRemoteLinks wraps GetRemoteLinksWithContext using the background context. GetRemoteLinksWithContext gets remote issue links on the issue. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getRemoteIssueLinks GetTransitions wraps GetTransitionsWithContext using the background context. GetTransitionsWithContext gets a list of the transitions possible for this issue by the current user, along with fields that are required and their types. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getTransitions GetWatchers wraps GetWatchersWithContext using the background context. GetWatchersWithContext wil return all the users watching/observing the given issue Jira API docs: https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/issue-getIssueWatchers GetWithContext returns a full representation of the issue for the given issue key. Jira will attempt to identify the issue by the issueIdOrKey path parameter. This can be an issue id, or an issue key. If the issue cannot be found via an exact match, Jira will also look for the issue in a case-insensitive way, or by looking to see if the issue was moved. The given options will be appended to the query string Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/issue-getIssue GetWorklogs wraps GetWorklogsWithContext using the background context. GetWorklogsWithContext gets all the worklogs for an issue. This method is especially important if you need to read all the worklogs, not just the first page. https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/worklog-getIssueWorklog PostAttachment wraps PostAttachmentWithContext using the background context. PostAttachmentWithContext uploads r (io.Reader) as an attachment to a given issueID RemoveWatcher wraps RemoveWatcherWithContext using the background context. RemoveWatcherWithContext removes given user from given issue Jira API docs: https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/issue-removeWatcher Search wraps SearchWithContext using the background context. SearchPages wraps SearchPagesWithContext using the background context. SearchPagesWithContext will get issues from all pages in a search Jira API docs: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues SearchWithContext will search for tickets according to the jql Jira API docs: https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-query-issues Update wraps UpdateWithContext using the background context. UpdateAssignee wraps UpdateAssigneeWithContext using the background context. UpdateAssigneeWithContext updates the user assigned to work on the given issue Jira API docs: https://docs.atlassian.com/software/jira/docs/api/REST/7.10.2/#api/2/issue-assign UpdateComment wraps UpdateCommentWithContext using the background context. UpdateCommentWithContext updates the body of a comment, identified by comment.ID, on the issueID. Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue/{issueIdOrKey}/comment-updateComment UpdateIssue wraps UpdateIssueWithContext using the background context. UpdateIssueWithContext updates an issue from a JSON representation. The issue is found by key. https://docs.atlassian.com/jira/REST/7.4.0/#api/2/issue-editIssue UpdateWithContext updates an issue from a JSON representation. The issue is found by key. Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue UpdateWithOptions wraps UpdateWithOptionsWithContext using the background context. UpdateWithOptionsWithContext updates an issue from a JSON representation, while also specifying query params. The issue is found by key. Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue UpdateWorklogRecord wraps UpdateWorklogRecordWithContext using the background context. UpdateWorklogRecordWithContext updates a worklog record. https://docs.atlassian.com/software/jira/docs/api/REST/7.1.2/#api/2/issue-updateWorklog
IssuesInSprintResult represents a wrapper struct for search result Issues []Issue
IssuesWrapper represents a wrapper struct for moving issues to sprint Issues []string
IssueType represents a type of a Jira issue. Typical types are "Request", "Bug", "Story", ... AvatarID int Description string ID string IconURL string Name string Self string Subtask bool
JWTAuthTransport is an http.RoundTripper that authenticates all requests using Jira's JWT based authentication. NOTE: this form of auth should be used by add-ons installed from the Atlassian marketplace. Jira docs: https://developer.atlassian.com/cloud/jira/platform/understanding-jwt Examples in other languages: https://bitbucket.org/atlassian/atlassian-jwt-ruby/src/d44a8e7a4649e4f23edaa784402655fda7c816ea/lib/atlassian/jwt.rb https://bitbucket.org/atlassian/atlassian-jwt-py/src/master/atlassian_jwt/url_utils.py Issuer string Secret []byte Transport is the underlying HTTP transport to use when making requests. It will default to http.DefaultTransport if nil. (*T) Client() *http.Client RoundTrip adds the session object to the request. *T : net/http.RoundTripper
MetaIssueType represents the different issue types a project has. Note: Fields is interface because this is an object which can have arbitraty keys related to customfields. It is not possible to expect these for a general way. This will be returning a map. Further processing must be done depending on what is required. Description string Expand string Fields tcontainer.MarshalMap IconUrl string Id string Name string Self string Subtasks bool CheckCompleteAndAvailable checks if the given fields satisfies the mandatory field required to create a issue for the given type And also if the given fields are available. GetAllFields returns a map of all the fields for an IssueType. This includes all required and not required. The key of the returned map is what you see in the form and the value is how it is representated in the jira schema. GetMandatoryFields returns a map of all the required fields from the MetaIssueTypes. if a field returned by the api was: "customfield_10806": { "required": true, "schema": { "type": "any", "custom": "com.pyxis.greenhopper.jira:gh-epic-link", "customId": 10806 }, "name": "Epic Link", "hasDefaultValue": false, "operations": [ "set" ] } the returned map would have "Epic Link" as the key and "customfield_10806" as value. This choice has been made so that the it is easier to generate the create api request later. func (*MetaProject).GetIssueTypeWithName(name string) *MetaIssueType func InitIssueWithMetaAndFields(metaProject *MetaProject, metaIssuetype *MetaIssueType, fieldsConfig map[string]string) (*Issue, error)
MetaProject is the meta information about a project returned from createmeta api Expand string Id string omitted avatarUrls Key string Name string Self string GetIssueTypeWithName returns an IssueType with name from a given MetaProject. If not found, this returns nil. The comparison of the name is case insensitive func (*CreateMetaInfo).GetProjectWithKey(key string) *MetaProject func (*CreateMetaInfo).GetProjectWithName(name string) *MetaProject func InitIssueWithMetaAndFields(metaProject *MetaProject, metaIssuetype *MetaIssueType, fieldsConfig map[string]string) (*Issue, error)
Option represents an option value in a SelectList or MultiSelect custom issue field Value string
Organization contains Organization data ID string Links *SelfLink Name string func (*OrganizationService).CreateOrganization(name string) (*Organization, *Response, error) func (*OrganizationService).CreateOrganizationWithContext(ctx context.Context, name string) (*Organization, *Response, error) func (*OrganizationService).GetOrganization(organizationID int) (*Organization, *Response, error) func (*OrganizationService).GetOrganizationWithContext(ctx context.Context, organizationID int) (*Organization, *Response, error)
OrganizationCreationDTO is DTO for creat organization API Name string
OrganizationService handles Organizations for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/ AddUsers wraps AddUsersWithContext using the background context. AddUsersWithContext adds users to an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-user-post CreateOrganization wraps CreateOrganizationWithContext using the background context. CreateOrganizationWithContext creates an organization by passing the name of the organization. Jira API docs: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-post DeleteOrganization wraps DeleteOrganizationWithContext using the background context. DeleteOrganizationWithContext deletes an organization. Note that the organization is deleted regardless of other associations it may have. For example, associations with service desks. Jira API docs: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-delete DeleteProperty wraps DeletePropertyWithContext using the background context. DeletePropertyWithContext removes a property from an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-property-propertykey-delete GetAllOrganizations wraps GetAllOrganizationsWithContext using the background context. GetAllOrganizationsWithContext returns a list of organizations in the Jira Service Management instance. Use this method when you want to present a list of organizations or want to locate an organization by name. Jira API docs: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-group-organization GetOrganization wraps GetOrganizationWithContext using the background context. GetOrganizationWithContext returns details of an organization. Use this method to get organization details whenever your application component is passed an organization ID but needs to display other organization details. Jira API docs: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-get GetPropertiesKeys wraps GetPropertiesKeysWithContext using the background context. GetPropertiesKeysWithContext returns the keys of all properties for an organization. Use this resource when you need to find out what additional properties items have been added to an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-property-get GetProperty wraps GetPropertyWithContext using the background context. GetPropertyWithContext returns the value of a property from an organization. Use this method to obtain the JSON content for an organization's property. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-property-propertykey-get GetUsers wraps GetUsersWithContext using the background context. GetUsersWithContext returns all the users associated with an organization. Use this method where you want to provide a list of users for an organization or determine if a user is associated with an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-user-get RemoveUsers wraps RemoveUsersWithContext using the background context. RemoveUsersWithContext removes users from an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-user-delete SetProperty wraps SetPropertyWithContext using the background context. SetPropertyWithContext sets the value of a property for an organization. Use this resource to store custom data against an organization. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-organization-organizationid-property-propertykey-put
OrganizationUsersDTO contains organization user ids AccountIds []string func (*OrganizationService).AddUsers(organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).AddUsersWithContext(ctx context.Context, organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).RemoveUsers(organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).RemoveUsersWithContext(ctx context.Context, organizationID int, users OrganizationUsersDTO) (*Response, error)
PagedDTO is response of a paged list Expands []string IsLastPage bool Limit int Size int Start int Values []interface{} func (*OrganizationService).GetAllOrganizations(start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*OrganizationService).GetAllOrganizationsWithContext(ctx context.Context, start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*OrganizationService).GetUsers(organizationID int, start int, limit int) (*PagedDTO, *Response, error) func (*OrganizationService).GetUsersWithContext(ctx context.Context, organizationID int, start int, limit int) (*PagedDTO, *Response, error) func (*ServiceDeskService).GetOrganizations(serviceDeskID int, start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*ServiceDeskService).GetOrganizationsWithContext(ctx context.Context, serviceDeskID int, start int, limit int, accountID string) (*PagedDTO, *Response, error)
Parent represents the parent of a Jira issue, to be used with subtask issue types. ID string Key string
Holder Holder ID int Name string Self string
PermissionScheme represents the permission scheme for the project Description string Expand string ID int Name string Permissions []Permission Self string func (*PermissionSchemeService).Get(schemeID int) (*PermissionScheme, *Response, error) func (*PermissionSchemeService).GetWithContext(ctx context.Context, schemeID int) (*PermissionScheme, *Response, error) func (*ProjectService).GetPermissionScheme(projectID string) (*PermissionScheme, *Response, error) func (*ProjectService).GetPermissionSchemeWithContext(ctx context.Context, projectID string) (*PermissionScheme, *Response, error)
PermissionSchemes []PermissionScheme func (*PermissionSchemeService).GetList() (*PermissionSchemes, *Response, error) func (*PermissionSchemeService).GetListWithContext(ctx context.Context) (*PermissionSchemes, *Response, error)
PermissionSchemeService handles permissionschemes for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Permissionscheme Get wraps GetWithContext using the background context. GetList wraps GetListWithContext using the background context. GetListWithContext returns a list of all permission schemes Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-permissionscheme-get GetWithContext returns a full representation of the permission scheme for the schemeID Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-permissionscheme-schemeId-get
Priority represents a priority of a Jira issue. Typical types are "Normal", "Moderate", "Urgent", ... Description string ID string IconURL string Name string Self string StatusColor string func (*PriorityService).GetList() ([]Priority, *Response, error) func (*PriorityService).GetListWithContext(ctx context.Context) ([]Priority, *Response, error)
PriorityService handles priorities for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-Priority GetList wraps GetListWithContext using the background context. GetListWithContext gets all priorities from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-priority-get
Progress represents the progress of a Jira issue. Percent int Progress int Total int
Project represents a Jira Project. AssigneeType string AvatarUrls AvatarUrls Components []ProjectComponent Description string Email string Expand string ID string IssueTypes []IssueType Key string Lead User Name string ProjectCategory ProjectCategory Roles map[string]string Self string URL string Versions []Version func (*ProjectService).Get(projectID string) (*Project, *Response, error) func (*ProjectService).GetWithContext(ctx context.Context, projectID string) (*Project, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.SearchProjects(...string) ([]Project, error) func gitlab.com/pcanilho/go-jira-cli/internal.ProjectController.SearchProjects(...string) ([]Project, error) func gitlab.com/pcanilho/go-jira-cli/cmd/interactive.NewIssueProjectMenu(projects []Project, previous interactive.Menu) interactive.Menu
ProjectCategory represents a single project category Description string ID string Name string Self string
ProjectComponent represents a single component of a project Assignee User AssigneeType string Description string ID string IsAssigneeTypeValid bool Lead User Name string Project string ProjectID int RealAssignee User RealAssigneeType string Self string func (*ComponentService).Create(options *CreateComponentOptions) (*ProjectComponent, *Response, error) func (*ComponentService).CreateWithContext(ctx context.Context, options *CreateComponentOptions) (*ProjectComponent, *Response, error)
ProjectList represent a list of Projects func (*ProjectService).GetList() (*ProjectList, *Response, error) func (*ProjectService).GetListWithContext(ctx context.Context) (*ProjectList, *Response, error) func (*ProjectService).ListWithOptions(options *GetQueryOptions) (*ProjectList, *Response, error) func (*ProjectService).ListWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*ProjectList, *Response, error)
ProjectService handles projects for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project Get wraps GetWithContext using the background context. GetList wraps GetListWithContext using the background context. GetListWithContext gets all projects form Jira Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getAllProjects GetPermissionScheme wraps GetPermissionSchemeWithContext using the background context. GetPermissionSchemeWithContext returns a full representation of the permission scheme for the project Jira will attempt to identify the project by the projectIdOrKey path parameter. This can be an project id, or an project key. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getProject GetWithContext returns a full representation of the project for the given issue key. Jira will attempt to identify the project by the projectIdOrKey path parameter. This can be an project id, or an project key. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getProject ListWithOptions wraps ListWithOptionsWithContext using the background context. ListWithOptionsWithContext gets all projects form Jira with optional query params, like &GetQueryOptions{Expand: "issueTypes"} to get a list of all projects and their supported issuetypes Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getAllProjects
PropertyKey contains Property key details. Key string Self string
PropertyKeys contains an array of PropertyKey Keys []PropertyKey func (*OrganizationService).GetPropertiesKeys(organizationID int) (*PropertyKeys, *Response, error) func (*OrganizationService).GetPropertiesKeysWithContext(ctx context.Context, organizationID int) (*PropertyKeys, *Response, error)
RemoteLinkApplication represents remote links application Name string Type string
RemoteLinkIcon represents icon displayed next to link Link string Title string Url16x16 string
RemoteLinkObject represents remote link object itself Icon *RemoteLinkIcon Status *RemoteLinkStatus Summary string Title string URL string
RemoteLinkStatus if the link is a resolvable object (issue, epic) - the structure represent its status Icon *RemoteLinkIcon Resolved bool
Resolution represents a resolution of a Jira issue. Typical types are "Fixed", "Suspended", "Won't Fix", ... Description string ID string Name string Self string func (*ResolutionService).GetList() ([]Resolution, *Response, error) func (*ResolutionService).GetListWithContext(ctx context.Context) ([]Resolution, *Response, error)
ResolutionService handles resolutions for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-Resolution GetList wraps GetListWithContext using the background context. GetListWithContext gets all resolutions from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-resolution-get
Response represents Jira API response. It wraps http.Response returned from API and provides information about paging. MaxResults int Response *http.Response Body represents the response body. The response body is streamed on demand as the Body field is read. If the network connection fails or the server terminates the response, Body.Read calls return an error. The http Client and Transport guarantee that Body is always non-nil, even on responses without a body or responses with a zero-length body. It is the caller's responsibility to close Body. The default HTTP client's Transport may not reuse HTTP/1.x "keep-alive" TCP connections if the Body is not read to completion and closed. The Body is automatically dechunked if the server replied with a "chunked" Transfer-Encoding. As of Go 1.12, the Body will also implement io.Writer on a successful "101 Switching Protocols" response, as used by WebSockets and HTTP/2's "h2c" mode. Close records whether the header directed that the connection be closed after reading Body. The value is advice for clients: neither ReadResponse nor Response.Write ever closes a connection. ContentLength records the length of the associated content. The value -1 indicates that the length is unknown. Unless Request.Method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body. Header maps header keys to values. If the response had multiple headers with the same key, they may be concatenated, with comma delimiters. (RFC 7230, section 3.2.2 requires that multiple headers be semantically equivalent to a comma-delimited sequence.) When Header values are duplicated by other fields in this struct (e.g., ContentLength, TransferEncoding, Trailer), the field values are authoritative. Keys in the map are canonicalized (see CanonicalHeaderKey). // e.g. "HTTP/1.0" // e.g. 1 // e.g. 0 Request is the request that was sent to obtain this Response. Request's Body is nil (having already been consumed). This is only populated for Client requests. // e.g. "200 OK" // e.g. 200 TLS contains information about the TLS connection on which the response was received. It is nil for unencrypted responses. The pointer is shared between responses and should not be modified. Trailer maps trailer keys to values in the same format as Header. The Trailer initially contains only nil values, one for each key specified in the server's "Trailer" header value. Those values are not added to Header. Trailer must not be accessed concurrently with Read calls on the Body. After Body.Read has returned io.EOF, Trailer will contain any trailer values sent by the server. Contains transfer encodings from outer-most to inner-most. Value is nil, means that "identity" encoding is used. Uncompressed reports whether the response was sent compressed but was decompressed by the http package. When true, reading from Body yields the uncompressed content instead of the compressed content actually set from the server, ContentLength is set to -1, and the "Content-Length" and "Content-Encoding" fields are deleted from the responseHeader. To get the original response from the server, set Transport.DisableCompression to true. StartAt int Total int Cookies parses and returns the cookies set in the Set-Cookie headers. Location returns the URL of the response's "Location" header, if present. Relative redirects are resolved relative to the Response's Request. ErrNoLocation is returned if no Location header is present. ProtoAtLeast reports whether the HTTP protocol used in the response is at least major.minor. Write writes r to w in the HTTP/1.x server response format, including the status line, headers, body, and optional trailer. This method consults the following fields of the response r: StatusCode ProtoMajor ProtoMinor Request.Method TransferEncoding Trailer Body ContentLength Header, values for non-canonical keys will have unpredictable behavior The Response Body is closed after it is sent. func (*BoardService).CreateBoard(board *Board) (*Board, *Response, error) func (*BoardService).CreateBoardWithContext(ctx context.Context, board *Board) (*Board, *Response, error) func (*BoardService).DeleteBoard(boardID int) (*Board, *Response, error) func (*BoardService).DeleteBoardWithContext(ctx context.Context, boardID int) (*Board, *Response, error) func (*BoardService).GetAllBoards(opt *BoardListOptions) (*BoardsList, *Response, error) func (*BoardService).GetAllBoardsWithContext(ctx context.Context, opt *BoardListOptions) (*BoardsList, *Response, error) func (*BoardService).GetAllSprints(boardID string) ([]Sprint, *Response, error) func (*BoardService).GetAllSprintsWithContext(ctx context.Context, boardID string) ([]Sprint, *Response, error) func (*BoardService).GetAllSprintsWithOptions(boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) func (*BoardService).GetAllSprintsWithOptionsWithContext(ctx context.Context, boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) func (*BoardService).GetBoard(boardID int) (*Board, *Response, error) func (*BoardService).GetBoardConfiguration(boardID int) (*BoardConfiguration, *Response, error) func (*BoardService).GetBoardConfigurationWithContext(ctx context.Context, boardID int) (*BoardConfiguration, *Response, error) func (*BoardService).GetBoardWithContext(ctx context.Context, boardID int) (*Board, *Response, error) func (*Client).Do(req *http.Request, v interface{}) (*Response, error) func (*ComponentService).Create(options *CreateComponentOptions) (*ProjectComponent, *Response, error) func (*ComponentService).CreateWithContext(ctx context.Context, options *CreateComponentOptions) (*ProjectComponent, *Response, error) func (*FieldService).GetList() ([]Field, *Response, error) func (*FieldService).GetListWithContext(ctx context.Context) ([]Field, *Response, error) func (*FilterService).Get(filterID int) (*Filter, *Response, error) func (*FilterService).GetFavouriteList() ([]*Filter, *Response, error) func (*FilterService).GetFavouriteListWithContext(ctx context.Context) ([]*Filter, *Response, error) func (*FilterService).GetList() ([]*Filter, *Response, error) func (*FilterService).GetListWithContext(ctx context.Context) ([]*Filter, *Response, error) func (*FilterService).GetMyFilters(opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error) func (*FilterService).GetMyFiltersWithContext(ctx context.Context, opts *GetMyFiltersQueryOptions) ([]*Filter, *Response, error) func (*FilterService).GetWithContext(ctx context.Context, filterID int) (*Filter, *Response, error) func (*FilterService).Search(opt *FilterSearchOptions) (*FiltersList, *Response, error) func (*FilterService).SearchWithContext(ctx context.Context, opt *FilterSearchOptions) (*FiltersList, *Response, error) func (*GroupService).Add(groupname string, username string) (*Group, *Response, error) func (*GroupService).AddWithContext(ctx context.Context, groupname string, username string) (*Group, *Response, error) func (*GroupService).Get(name string) ([]GroupMember, *Response, error) func (*GroupService).GetWithContext(ctx context.Context, name string) ([]GroupMember, *Response, error) func (*GroupService).GetWithOptions(name string, options *GroupSearchOptions) ([]GroupMember, *Response, error) func (*GroupService).GetWithOptionsWithContext(ctx context.Context, name string, options *GroupSearchOptions) ([]GroupMember, *Response, error) func (*GroupService).Remove(groupname string, username string) (*Response, error) func (*GroupService).RemoveWithContext(ctx context.Context, groupname string, username string) (*Response, error) func (*IssueLinkTypeService).Create(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).CreateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Delete(ID string) (*Response, error) func (*IssueLinkTypeService).DeleteWithContext(ctx context.Context, ID string) (*Response, error) func (*IssueLinkTypeService).Get(ID string) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetList() ([]IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetListWithContext(ctx context.Context) ([]IssueLinkType, *Response, error) func (*IssueLinkTypeService).GetWithContext(ctx context.Context, ID string) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).Update(linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueLinkTypeService).UpdateWithContext(ctx context.Context, linkType *IssueLinkType) (*IssueLinkType, *Response, error) func (*IssueService).AddComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).AddCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).AddLink(issueLink *IssueLink) (*Response, error) func (*IssueService).AddLinkWithContext(ctx context.Context, issueLink *IssueLink) (*Response, error) func (*IssueService).AddRemoteLink(issueID string, remotelink *RemoteLink) (*RemoteLink, *Response, error) func (*IssueService).AddRemoteLinkWithContext(ctx context.Context, issueID string, remotelink *RemoteLink) (*RemoteLink, *Response, error) func (*IssueService).AddWatcher(issueID string, userName string) (*Response, error) func (*IssueService).AddWatcherWithContext(ctx context.Context, issueID string, userName string) (*Response, error) func (*IssueService).AddWorklogRecord(issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).AddWorklogRecordWithContext(ctx context.Context, issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).Create(issue *Issue) (*Issue, *Response, error) func (*IssueService).CreateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).Delete(issueID string) (*Response, error) func (*IssueService).DeleteAttachment(attachmentID string) (*Response, error) func (*IssueService).DeleteAttachmentWithContext(ctx context.Context, attachmentID string) (*Response, error) func (*IssueService).DeleteLink(linkID string) (*Response, error) func (*IssueService).DeleteLinkWithContext(ctx context.Context, linkID string) (*Response, error) func (*IssueService).DeleteWithContext(ctx context.Context, issueID string) (*Response, error) func (*IssueService).DoTransition(ticketID, transitionID string) (*Response, error) func (*IssueService).DoTransitionWithContext(ctx context.Context, ticketID, transitionID string) (*Response, error) func (*IssueService).DoTransitionWithPayload(ticketID, payload interface{}) (*Response, error) func (*IssueService).DoTransitionWithPayloadWithContext(ctx context.Context, ticketID, payload interface{}) (*Response, error) func (*IssueService).DownloadAttachment(attachmentID string) (*Response, error) func (*IssueService).DownloadAttachmentWithContext(ctx context.Context, attachmentID string) (*Response, error) func (*IssueService).Get(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*IssueService).GetCreateMeta(projectkeys string) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithContext(ctx context.Context, projectkeys string) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithOptions(options *GetQueryOptions) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCreateMetaWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*CreateMetaInfo, *Response, error) func (*IssueService).GetCustomFields(issueID string) (CustomFields, *Response, error) func (*IssueService).GetCustomFieldsWithContext(ctx context.Context, issueID string) (CustomFields, *Response, error) func (*IssueService).GetEditMeta(issue *Issue) (*EditMetaInfo, *Response, error) func (*IssueService).GetEditMetaWithContext(ctx context.Context, issue *Issue) (*EditMetaInfo, *Response, error) func (*IssueService).GetRemoteLinks(id string) (*[]RemoteLink, *Response, error) func (*IssueService).GetRemoteLinksWithContext(ctx context.Context, id string) (*[]RemoteLink, *Response, error) func (*IssueService).GetTransitions(id string) ([]Transition, *Response, error) func (*IssueService).GetTransitionsWithContext(ctx context.Context, id string) ([]Transition, *Response, error) func (*IssueService).GetWatchers(issueID string) (*[]User, *Response, error) func (*IssueService).GetWatchersWithContext(ctx context.Context, issueID string) (*[]User, *Response, error) func (*IssueService).GetWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*IssueService).GetWorklogs(issueID string, options ...func(*http.Request) error) (*Worklog, *Response, error) func (*IssueService).GetWorklogsWithContext(ctx context.Context, issueID string, options ...func(*http.Request) error) (*Worklog, *Response, error) func (*IssueService).PostAttachment(issueID string, r io.Reader, attachmentName string) (*[]Attachment, *Response, error) func (*IssueService).PostAttachmentWithContext(ctx context.Context, issueID string, r io.Reader, attachmentName string) (*[]Attachment, *Response, error) func (*IssueService).RemoveWatcher(issueID string, userName string) (*Response, error) func (*IssueService).RemoveWatcherWithContext(ctx context.Context, issueID string, userName string) (*Response, error) func (*IssueService).Search(jql string, options *SearchOptions) ([]Issue, *Response, error) func (*IssueService).SearchWithContext(ctx context.Context, jql string, options *SearchOptions) ([]Issue, *Response, error) func (*IssueService).Update(issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateAssignee(issueID string, assignee *User) (*Response, error) func (*IssueService).UpdateAssigneeWithContext(ctx context.Context, issueID string, assignee *User) (*Response, error) func (*IssueService).UpdateComment(issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateCommentWithContext(ctx context.Context, issueID string, comment *Comment) (*Comment, *Response, error) func (*IssueService).UpdateIssue(jiraID string, data map[string]interface{}) (*Response, error) func (*IssueService).UpdateIssueWithContext(ctx context.Context, jiraID string, data map[string]interface{}) (*Response, error) func (*IssueService).UpdateWithContext(ctx context.Context, issue *Issue) (*Issue, *Response, error) func (*IssueService).UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*IssueService).UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*IssueService).UpdateWorklogRecord(issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).UpdateWorklogRecordWithContext(ctx context.Context, issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*OrganizationService).AddUsers(organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).AddUsersWithContext(ctx context.Context, organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).CreateOrganization(name string) (*Organization, *Response, error) func (*OrganizationService).CreateOrganizationWithContext(ctx context.Context, name string) (*Organization, *Response, error) func (*OrganizationService).DeleteOrganization(organizationID int) (*Response, error) func (*OrganizationService).DeleteOrganizationWithContext(ctx context.Context, organizationID int) (*Response, error) func (*OrganizationService).DeleteProperty(organizationID int, propertyKey string) (*Response, error) func (*OrganizationService).DeletePropertyWithContext(ctx context.Context, organizationID int, propertyKey string) (*Response, error) func (*OrganizationService).GetAllOrganizations(start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*OrganizationService).GetAllOrganizationsWithContext(ctx context.Context, start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*OrganizationService).GetOrganization(organizationID int) (*Organization, *Response, error) func (*OrganizationService).GetOrganizationWithContext(ctx context.Context, organizationID int) (*Organization, *Response, error) func (*OrganizationService).GetPropertiesKeys(organizationID int) (*PropertyKeys, *Response, error) func (*OrganizationService).GetPropertiesKeysWithContext(ctx context.Context, organizationID int) (*PropertyKeys, *Response, error) func (*OrganizationService).GetProperty(organizationID int, propertyKey string) (*EntityProperty, *Response, error) func (*OrganizationService).GetPropertyWithContext(ctx context.Context, organizationID int, propertyKey string) (*EntityProperty, *Response, error) func (*OrganizationService).GetUsers(organizationID int, start int, limit int) (*PagedDTO, *Response, error) func (*OrganizationService).GetUsersWithContext(ctx context.Context, organizationID int, start int, limit int) (*PagedDTO, *Response, error) func (*OrganizationService).RemoveUsers(organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).RemoveUsersWithContext(ctx context.Context, organizationID int, users OrganizationUsersDTO) (*Response, error) func (*OrganizationService).SetProperty(organizationID int, propertyKey string) (*Response, error) func (*OrganizationService).SetPropertyWithContext(ctx context.Context, organizationID int, propertyKey string) (*Response, error) func (*PermissionSchemeService).Get(schemeID int) (*PermissionScheme, *Response, error) func (*PermissionSchemeService).GetList() (*PermissionSchemes, *Response, error) func (*PermissionSchemeService).GetListWithContext(ctx context.Context) (*PermissionSchemes, *Response, error) func (*PermissionSchemeService).GetWithContext(ctx context.Context, schemeID int) (*PermissionScheme, *Response, error) func (*PriorityService).GetList() ([]Priority, *Response, error) func (*PriorityService).GetListWithContext(ctx context.Context) ([]Priority, *Response, error) func (*ProjectService).Get(projectID string) (*Project, *Response, error) func (*ProjectService).GetList() (*ProjectList, *Response, error) func (*ProjectService).GetListWithContext(ctx context.Context) (*ProjectList, *Response, error) func (*ProjectService).GetPermissionScheme(projectID string) (*PermissionScheme, *Response, error) func (*ProjectService).GetPermissionSchemeWithContext(ctx context.Context, projectID string) (*PermissionScheme, *Response, error) func (*ProjectService).GetWithContext(ctx context.Context, projectID string) (*Project, *Response, error) func (*ProjectService).ListWithOptions(options *GetQueryOptions) (*ProjectList, *Response, error) func (*ProjectService).ListWithOptionsWithContext(ctx context.Context, options *GetQueryOptions) (*ProjectList, *Response, error) func (*ResolutionService).GetList() ([]Resolution, *Response, error) func (*ResolutionService).GetListWithContext(ctx context.Context) ([]Resolution, *Response, error) func (*RoleService).Get(roleID int) (*Role, *Response, error) func (*RoleService).GetList() (*[]Role, *Response, error) func (*RoleService).GetListWithContext(ctx context.Context) (*[]Role, *Response, error) func (*RoleService).GetWithContext(ctx context.Context, roleID int) (*Role, *Response, error) func (*ServiceDeskService).AddOrganization(serviceDeskID int, organizationID int) (*Response, error) func (*ServiceDeskService).AddOrganizationWithContext(ctx context.Context, serviceDeskID int, organizationID int) (*Response, error) func (*ServiceDeskService).GetOrganizations(serviceDeskID int, start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*ServiceDeskService).GetOrganizationsWithContext(ctx context.Context, serviceDeskID int, start int, limit int, accountID string) (*PagedDTO, *Response, error) func (*ServiceDeskService).RemoveOrganization(serviceDeskID int, organizationID int) (*Response, error) func (*ServiceDeskService).RemoveOrganizationWithContext(ctx context.Context, serviceDeskID int, organizationID int) (*Response, error) func (*SprintService).GetIssue(issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*SprintService).GetIssuesForSprint(sprintID int) ([]Issue, *Response, error) func (*SprintService).GetIssuesForSprintWithContext(ctx context.Context, sprintID int) ([]Issue, *Response, error) func (*SprintService).GetIssueWithContext(ctx context.Context, issueID string, options *GetQueryOptions) (*Issue, *Response, error) func (*SprintService).MoveIssuesToSprint(sprintID int, issueIDs []string) (*Response, error) func (*SprintService).MoveIssuesToSprintWithContext(ctx context.Context, sprintID int, issueIDs []string) (*Response, error) func (*StatusCategoryService).GetList() ([]StatusCategory, *Response, error) func (*StatusCategoryService).GetListWithContext(ctx context.Context) ([]StatusCategory, *Response, error) func (*StatusService).GetAllStatuses() ([]Status, *Response, error) func (*StatusService).GetAllStatusesWithContext(ctx context.Context) ([]Status, *Response, error) func (*UserService).Create(user *User) (*User, *Response, error) func (*UserService).CreateWithContext(ctx context.Context, user *User) (*User, *Response, error) func (*UserService).Delete(accountId string) (*Response, error) func (*UserService).DeleteWithContext(ctx context.Context, accountId string) (*Response, error) func (*UserService).Find(property string, tweaks ...userSearchF) ([]User, *Response, error) func (*UserService).FindWithContext(ctx context.Context, property string, tweaks ...userSearchF) ([]User, *Response, error) func (*UserService).Get(accountId string) (*User, *Response, error) func (*UserService).GetByAccountID(accountID string) (*User, *Response, error) func (*UserService).GetByAccountIDWithContext(ctx context.Context, accountID string) (*User, *Response, error) func (*UserService).GetGroups(accountId string) (*[]UserGroup, *Response, error) func (*UserService).GetGroupsWithContext(ctx context.Context, accountId string) (*[]UserGroup, *Response, error) func (*UserService).GetSelf() (*User, *Response, error) func (*UserService).GetSelfWithContext(ctx context.Context) (*User, *Response, error) func (*UserService).GetWithContext(ctx context.Context, accountId string) (*User, *Response, error) func (*VersionService).Create(version *Version) (*Version, *Response, error) func (*VersionService).CreateWithContext(ctx context.Context, version *Version) (*Version, *Response, error) func (*VersionService).Get(versionID int) (*Version, *Response, error) func (*VersionService).GetWithContext(ctx context.Context, versionID int) (*Version, *Response, error) func (*VersionService).Update(version *Version) (*Version, *Response, error) func (*VersionService).UpdateWithContext(ctx context.Context, version *Version) (*Version, *Response, error) func NewJiraError(resp *Response, httpError error) error
Role represents a Jira product role Actors []*Actor Description string ID int Name string Self string func (*RoleService).Get(roleID int) (*Role, *Response, error) func (*RoleService).GetList() (*[]Role, *Response, error) func (*RoleService).GetListWithContext(ctx context.Context) (*[]Role, *Response, error) func (*RoleService).GetWithContext(ctx context.Context, roleID int) (*Role, *Response, error)
RoleService handles roles for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-group-Role Get wraps GetWithContext using the background context. GetList wraps GetListWithContext using the background context. GetListWithContext returns a list of all available project roles Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-role-get GetWithContext retreives a single Role from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-role-id-get
SearchOptions specifies the optional parameters to various List methods that support pagination. Pagination is used for the Jira REST APIs to conserve server resources and limit response size for resources that return potentially large collection of items. A request to a pages API will result in a values array wrapped in a JSON object with some paging metadata Default Pagination options Expand: Expand specific sections in the returned issues Fields []string MaxResults: The maximum number of projects to return per page. Default: 50. StartAt: The starting index of the returned projects. Base index: 0. ValidateQuery: The validateQuery param offers control over whether to validate and how strictly to treat the validation. Default: strict. func (*IssueService).Search(jql string, options *SearchOptions) ([]Issue, *Response, error) func (*IssueService).SearchPages(jql string, options *SearchOptions, f func(Issue) error) error func (*IssueService).SearchPagesWithContext(ctx context.Context, jql string, options *SearchOptions, f func(Issue) error) error func (*IssueService).SearchWithContext(ctx context.Context, jql string, options *SearchOptions) ([]Issue, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.SearchIssues(string, *SearchOptions, int) ([]Issue, error) func gitlab.com/pcanilho/go-jira-cli/internal.IssueController.SearchIssues(string, *SearchOptions, int) ([]Issue, error)
ServiceDeskOrganizationDTO is a DTO for ServiceDesk organizations OrganizationID int
ServiceDeskService handles ServiceDesk for the Jira instance / API. AddOrganization wraps AddOrganizationWithContext using the background context. AddOrganizationWithContext adds an organization to a service desk. If the organization ID is already associated with the service desk, no change is made and the resource returns a 204 success code. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-servicedesk-servicedeskid-organization-post GetOrganizations wraps GetOrganizationsWithContext using the background context. GetOrganizationsWithContext returns a list of all organizations associated with a service desk. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-servicedesk-servicedeskid-organization-get RemoveOrganization wraps RemoveOrganizationWithContext using the background context. RemoveOrganizationWithContext removes an organization from a service desk. If the organization ID does not match an organization associated with the service desk, no change is made and the resource returns a 204 success code. https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/#api-rest-servicedeskapi-servicedesk-servicedeskid-organization-delete
Session represents a Session JSON response by the Jira API. Cookies []*http.Cookie LoginInfo struct{FailedLoginCount int; LoginCount int; LastFailedLoginTime string; PreviousLoginTime string} Name string Self string Session struct{Name string; Value string} func (*AuthenticationService).GetCurrentUser() (*Session, error) func (*AuthenticationService).GetCurrentUserWithContext(ctx context.Context) (*Session, error)
Sprint represents a sprint on Jira agile board CompleteDate *time.Time EndDate *time.Time ID int Name string OriginBoardID int Self string StartDate *time.Time State string func (*BoardService).GetAllSprints(boardID string) ([]Sprint, *Response, error) func (*BoardService).GetAllSprintsWithContext(ctx context.Context, boardID string) ([]Sprint, *Response, error)
SprintService handles sprints in Jira Agile API. See https://docs.atlassian.com/jira-software/REST/cloud/ GetIssue wraps GetIssueWithContext using the background context. GetIssueWithContext returns a full representation of the issue for the given issue key. Jira will attempt to identify the issue by the issueIdOrKey path parameter. This can be an issue id, or an issue key. If the issue cannot be found via an exact match, Jira will also look for the issue in a case-insensitive way, or by looking to see if the issue was moved. The given options will be appended to the query string Jira API docs: https://docs.atlassian.com/jira-software/REST/7.3.1/#agile/1.0/issue-getIssue TODO: create agile service for holding all agile apis' implementation GetIssuesForSprint wraps GetIssuesForSprintWithContext using the background context. GetIssuesForSprintWithContext returns all issues in a sprint, for a given sprint Id. This only includes issues that the user has permission to view. By default, the returned issues are ordered by rank. Jira API Docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/sprint-getIssuesForSprint MoveIssuesToSprint wraps MoveIssuesToSprintWithContext using the background context. MoveIssuesToSprintWithContext moves issues to a sprint, for a given sprint Id. Issues can only be moved to open or active sprints. The maximum number of issues that can be moved in one operation is 50. Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/sprint-moveIssuesToSprint
SprintsList reflects a list of agile sprints IsLast bool MaxResults int StartAt int Total int Values []Sprint func (*BoardService).GetAllSprintsWithOptions(boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) func (*BoardService).GetAllSprintsWithOptionsWithContext(ctx context.Context, boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error)
Status represents the current status of a Jira issue. Typical status are "Open", "In Progress", "Closed", ... Status can be user defined in every Jira instance. Description string ID string IconURL string Name string Self string StatusCategory StatusCategory func (*StatusService).GetAllStatuses() ([]Status, *Response, error) func (*StatusService).GetAllStatusesWithContext(ctx context.Context) ([]Status, *Response, error)
StatusCategory represents the category a status belongs to. Those categories can be user defined in every Jira instance. ColorName string ID int Key string Name string Self string func (*StatusCategoryService).GetList() ([]StatusCategory, *Response, error) func (*StatusCategoryService).GetListWithContext(ctx context.Context) ([]StatusCategory, *Response, error)
StatusCategoryService handles status categories for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-Statuscategory GetList wraps GetListWithContext using the background context. GetListWithContext gets all status categories from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-statuscategory-get
StatusService handles staties for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-group-Workflow-statuses GetAllStatuses wraps GetAllStatusesWithContext using the background context. GetAllStatusesWithContext returns a list of all statuses associated with workflows. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-status-get
Subtasks represents all issues of a parent issue. Fields IssueFields ID string Key string Self string
Time represents the Time definition of Jira as a time.Time of go ( T) Equal(u Time) bool MarshalJSON will transform the time.Time into a Jira time during the creation of a Jira request UnmarshalJSON will transform the Jira time into a time.Time during the transformation of the Jira JSON response T : encoding/json.Marshaler *T : encoding/json.Unmarshaler func Time.Equal(u Time) bool
TimeTracking represents the timetracking fields of a Jira issue. OriginalEstimate string OriginalEstimateSeconds int RemainingEstimate string RemainingEstimateSeconds int TimeSpent string TimeSpentSeconds int
Transition represents an issue transition in Jira Fields map[string]TransitionField ID string Name string To Status func (*IssueService).GetTransitions(id string) ([]Transition, *Response, error) func (*IssueService).GetTransitionsWithContext(ctx context.Context, id string) ([]Transition, *Response, error)
TransitionField represents the value of one Transition Required bool
TransitionPayload represents the request payload of Transition calls like DoTransition ID string
TransitionPayloadFields represents the fields that can be set when executing a transition Resolution *Resolution
UpdateQueryOptions specifies the optional parameters to the Edit issue NotifyUsers bool OverrideEditableFlag bool OverrideScreenSecurity bool func (*IssueService).UpdateWithOptions(issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error) func (*IssueService).UpdateWithOptionsWithContext(ctx context.Context, issue *Issue, opts *UpdateQueryOptions) (*Issue, *Response, error)
User represents a Jira user. AccountID string AccountType string Active bool ApplicationKeys []string AvatarUrls AvatarUrls DisplayName string EmailAddress string Key string Locale string Name string Password string Self string TimeZone string func (*IssueService).GetWatchers(issueID string) (*[]User, *Response, error) func (*IssueService).GetWatchersWithContext(ctx context.Context, issueID string) (*[]User, *Response, error) func (*UserService).Create(user *User) (*User, *Response, error) func (*UserService).CreateWithContext(ctx context.Context, user *User) (*User, *Response, error) func (*UserService).Find(property string, tweaks ...userSearchF) ([]User, *Response, error) func (*UserService).FindWithContext(ctx context.Context, property string, tweaks ...userSearchF) ([]User, *Response, error) func (*UserService).Get(accountId string) (*User, *Response, error) func (*UserService).GetByAccountID(accountID string) (*User, *Response, error) func (*UserService).GetByAccountIDWithContext(ctx context.Context, accountID string) (*User, *Response, error) func (*UserService).GetSelf() (*User, *Response, error) func (*UserService).GetSelfWithContext(ctx context.Context) (*User, *Response, error) func (*UserService).GetWithContext(ctx context.Context, accountId string) (*User, *Response, error) func gitlab.com/pcanilho/go-jira-cli/internal.Controller.GetUser(string) (*User, error) func gitlab.com/pcanilho/go-jira-cli/internal.UserController.GetUser(string) (*User, error) func (*IssueService).UpdateAssignee(issueID string, assignee *User) (*Response, error) func (*IssueService).UpdateAssigneeWithContext(ctx context.Context, issueID string, assignee *User) (*Response, error) func (*UserService).Create(user *User) (*User, *Response, error) func (*UserService).CreateWithContext(ctx context.Context, user *User) (*User, *Response, error) func gitlab.com/pcanilho/go-jira-cli/cmd/interactive.NewUserMenu(u User, previous interactive.Menu) interactive.Menu
UserGroup represents the group list Name string Self string func (*UserService).GetGroups(accountId string) (*[]UserGroup, *Response, error) func (*UserService).GetGroupsWithContext(ctx context.Context, accountId string) (*[]UserGroup, *Response, error)
UserService handles users for the Jira instance / API. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-group-Users Create wraps CreateWithContext using the background context. CreateWithContext creates an user in Jira. Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/user-createUser Delete wraps DeleteWithContext using the background context. DeleteWithContext deletes an user from Jira. Returns http.StatusNoContent on success. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-user-delete Find wraps FindWithContext using the background context. FindWithContext searches for user info from Jira: It can find users by email or display name using the query parameter Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-user-search-get Get wraps GetWithContext using the background context. GetByAccountID wraps GetByAccountIDWithContext using the background context. GetByAccountIDWithContext gets user info from Jira Searching by another parameter that is not accountId is deprecated, but this method is kept for backwards compatibility Jira API docs: https://docs.atlassian.com/jira/REST/cloud/#api/2/user-getUser GetGroups wraps GetGroupsWithContext using the background context. GetGroupsWithContext returns the groups which the user belongs to Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-user-groups-get GetSelf wraps GetSelfWithContext using the background context. GetSelfWithContext information about the current logged-in user Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-myself-get GetWithContext gets user info from Jira using its Account Id Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-user-get
Version represents a single release version of a project Archived *bool Description string ID string Name string // Unlike other IDs, this is returned as a number ReleaseDate string Released *bool Self string StartDate string UserReleaseDate string func (*VersionService).Create(version *Version) (*Version, *Response, error) func (*VersionService).CreateWithContext(ctx context.Context, version *Version) (*Version, *Response, error) func (*VersionService).Get(versionID int) (*Version, *Response, error) func (*VersionService).GetWithContext(ctx context.Context, versionID int) (*Version, *Response, error) func (*VersionService).Update(version *Version) (*Version, *Response, error) func (*VersionService).UpdateWithContext(ctx context.Context, version *Version) (*Version, *Response, error) func (*VersionService).Create(version *Version) (*Version, *Response, error) func (*VersionService).CreateWithContext(ctx context.Context, version *Version) (*Version, *Response, error) func (*VersionService).Update(version *Version) (*Version, *Response, error) func (*VersionService).UpdateWithContext(ctx context.Context, version *Version) (*Version, *Response, error)
VersionService handles Versions for the Jira instance / API. Jira API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/version Create wraps CreateWithContext using the background context. CreateWithContext creates a version in Jira. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-version-post Get wraps GetWithContext using the background context. GetWithContext gets version info from Jira Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-version-id-get Update wraps UpdateWithContext using the background context. UpdateWithContext updates a version from a JSON representation. Jira API docs: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-version-id-put
Watcher represents a simplified user that "observes" the issue AccountID string Active bool DisplayName string Name string Self string
Watches represents a type of how many and which user are "observing" a Jira issue to track the status / updates. IsWatching bool Self string WatchCount int Watchers []*Watcher
Worklog represents the work log of a Jira issue. One Worklog contains zero or n WorklogRecords Jira Wiki: https://confluence.atlassian.com/jira/logging-work-on-an-issue-185729605.html MaxResults int StartAt int Total int Worklogs []WorklogRecord func (*IssueService).GetWorklogs(issueID string, options ...func(*http.Request) error) (*Worklog, *Response, error) func (*IssueService).GetWorklogsWithContext(ctx context.Context, issueID string, options ...func(*http.Request) error) (*Worklog, *Response, error)
WorklogRecord represents one entry of a Worklog Author *User Comment string Created *Time ID string IssueID string Properties []EntityProperty Self string Started *Time TimeSpent string TimeSpentSeconds int UpdateAuthor *User Updated *Time func (*IssueService).AddWorklogRecord(issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).AddWorklogRecordWithContext(ctx context.Context, issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).UpdateWorklogRecord(issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).UpdateWorklogRecordWithContext(ctx context.Context, issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).AddWorklogRecord(issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).AddWorklogRecordWithContext(ctx context.Context, issueID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).UpdateWorklogRecord(issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error) func (*IssueService).UpdateWorklogRecordWithContext(ctx context.Context, issueID, worklogID string, record *WorklogRecord, options ...func(*http.Request) error) (*WorklogRecord, *Response, error)
Package-Level Functions (total 14, in which 10 are exported)
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. The caller is responsible to analyze the response body. The body can contain JSON (if the error is intended) or xml (sometimes Jira just failes).
InitIssueWithMetaAndFields returns Issue with with values from fieldsConfig properly set. * metaProject should contain metaInformation about the project where the issue should be created. * metaIssuetype is the MetaInformation about the Issuetype that needs to be created. * fieldsConfig is a key->value pair where key represents the name of the field as seen in the UI And value is the string value for that particular key. Note: This method doesn't verify that the fieldsConfig is complete with mandatory fields. The fieldsConfig is supposed to be already verified with MetaIssueType.CheckCompleteAndAvailable. It will however return error if the key is not found. All values will be packed into Unknowns. This is much convenient. If the struct fields needs to be configured as well, marshalling and unmarshalling will set the proper fields.
NewClient returns a new Jira API client. If a nil httpClient is provided, http.DefaultClient will be used. To use API methods which require authentication you can follow the preferred solution and provide an http.Client that will perform the authentication for you with OAuth and HTTP Basic (such as that provided by the golang.org/x/oauth2 library). As an alternative you can use Session Cookie based authentication provided by this package as well. See https://docs.atlassian.com/jira/REST/latest/#authentication baseURL is the HTTP endpoint of your Jira instance and should always be specified with a trailing slash.
NewJiraError creates a new jira Error
WithActive sets the active users lookup
WithInactive sets the inactive users lookup
WithMaxResults sets the max results to return
Applies query options to http request. This helper is meant to be used with all "QueryOptions" structs.
WithStartAt set the start pager
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 7, in which 5 are exported)
AssigneeAutomatic represents the value of the "Assignee: Automatic" of Jira
These constants are the keys of the default Jira status categories
These constants are the keys of the default Jira status categories
These constants are the keys of the default Jira status categories
These constants are the keys of the default Jira status categories