jira

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColumnDescriptionTitle = "Title of the resource."
)

// Constants

Variables

This section is empty.

Functions

func ConfigInstance

func ConfigInstance() interface{}

func GetConfig

func GetConfig(connection *plugin.Connection) jiraConfig

GetConfig :: retrieve and cast connection config from query data

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (jira) plugin

Types

type AdvancedApplicationProperty added in v0.0.2

type AdvancedApplicationProperty struct {
	ID            string   `json:"id"`
	Key           string   `json:"key"`
	Value         string   `json:"value"`
	Name          string   `json:"name"`
	Description   string   `json:"desc"`
	Type          string   `json:"type"`
	AllowedValues []string `json:"allowedValues"`
}

type BacklogIssueInfo added in v0.0.2

type BacklogIssueInfo struct {
	jira.Issue
	BoardId   int
	BoardName string
	Keys      map[string]string
}

type Color

type Color struct {
	Key string `json:"key"`
}

type Comment added in v0.13.0

type Comment struct {
	ID           string
	Self         string
	Author       jira.User
	Body         string
	UpdateAuthor jira.User
	Updated      string
	Created      string
	JsdPublic    bool
}

type CommentResult added in v0.13.0

type CommentResult struct {
	Comments   []Comment `json:"comments" structs:"comments"`
	StartAt    int       `json:"startAt" structs:"startAt"`
	MaxResults int       `json:"maxResults" structs:"maxResults"`
	Total      int       `json:"total" structs:"total"`
}

type Component added in v0.0.2

type Component struct {
	IssueCount          int64     `json:"issueCount"`
	RealAssignee        jira.User `json:"realAssignee"`
	IsAssigneeTypeValid bool      `json:"isAssigneeTypeValid"`
	RealAssigneeType    string    `json:"realAssigneeType"`
	Description         string    `json:"description"`
	Project             string    `json:"project"`
	Self                string    `json:"self"`
	AssigneeType        string    `json:"assigneeType"`
	Lead                jira.User `json:"lead"`
	Assignee            jira.User `json:"assignee"`
	ProjectId           int64     `json:"projectId"`
	Name                string    `json:"name"`
	Id                  string    `json:"id"`
}

type Dashboard

type Dashboard struct {
	Id               string            `json:"id"`
	IsFavourite      bool              `json:"isFavourite"`
	Name             string            `json:"name"`
	Owner            jira.User         `json:"owner"`
	Popularity       int64             `json:"popularity"`
	Rank             int32             `json:"rank"`
	Self             string            `json:"self"`
	SharePermissions []SharePermission `json:"sharePermissions"`
	EditPermissions  []SharePermission `json:"editPermissions"`
	View             string            `json:"view"`
}

type Epic

type Epic struct {
	Color   Color  `json:"color"`
	Done    bool   `json:"done"`
	Id      int64  `json:"id"`
	Key     string `json:"key"`
	Name    string `json:"name"`
	Self    string `json:"self"`
	Summary string `json:"summary"`
}

type GlobalSetting added in v0.0.3

type GlobalSetting struct {
	VotingEnabled             bool               `json:"votingEnabled"`
	WatchingEnabled           bool               `json:"watchingEnabled"`
	UnassignedIssuesAllowed   bool               `json:"unassignedIssuesAllowed"`
	SubTasksEnabled           bool               `json:"subTasksEnabled"`
	IssueLinkingEnabled       bool               `json:"issueLinkingEnabled"`
	TimeTrackingEnabled       bool               `json:"timeTrackingEnabled"`
	AttachmentsEnabled        bool               `json:"attachmentsEnabled"`
	TimeTrackingConfiguration TimeTrackingConfig `json:"timeTrackingConfiguration"`
}

type Group

type Group struct {
	Name    string `json:"name"`
	GroupId string `json:"groupId"`
}

type IssueInfo

type IssueInfo struct {
	jira.Issue
	Keys map[string]string
}

type IssueTypeProject added in v0.0.2

type IssueTypeProject struct {
	ID string `json:"id"`
}

type IssueTypeScope added in v0.0.2

type IssueTypeScope struct {
	Type    string           `json:"type"`
	Project IssueTypeProject `json:"project"`
}

type KeyPropertyValue added in v0.13.0

type KeyPropertyValue struct {
	Key   string      `json:"key,omitempty" structs:"key,omitempty"`
	Value interface{} `json:"value,omitempty" structs:"value,omitempty"`
}

type ListComponentResult added in v0.0.2

type ListComponentResult struct {
	Self       string      `json:"self"`
	NextPage   string      `json:"nextPage"`
	MaxResults int         `json:"maxResults"`
	StartAt    int         `json:"startAt"`
	Total      int         `json:"total"`
	IsLast     bool        `json:"isLast"`
	Values     []Component `json:"values"`
}

type ListEpicResult

type ListEpicResult struct {
	MaxResults int    `json:"maxResults"`
	StartAt    int    `json:"startAt"`
	Total      int    `json:"total"`
	IsLast     bool   `json:"isLast"`
	Values     []Epic `json:"values"`
}

type ListGroupResult

type ListGroupResult struct {
	MaxResults int     `json:"maxResults"`
	StartAt    int     `json:"startAt"`
	Total      int     `json:"total"`
	IsLast     bool    `json:"isLast"`
	Groups     []Group `json:"values"`
}

type ListIssuesResult

type ListIssuesResult struct {
	Expand     string            `json:"expand"`
	MaxResults int               `json:"maxResults"`
	StartAt    int               `json:"startAt"`
	Total      int               `json:"total"`
	Issues     []jira.Issue      `json:"issues"`
	Names      map[string]string `json:"names,omitempty" structs:"names,omitempty"`
}

type ListIssuesTypeResult added in v0.0.2

type ListIssuesTypeResult struct {
	Self           string         `json:"self"`
	ID             string         `json:"id"`
	Description    string         `json:"description"`
	IconURL        string         `json:"iconUrl"`
	Name           string         `json:"name"`
	Subtask        bool           `json:"subtask"`
	AvatarID       int64          `json:"avatarId"`
	EntityID       int64          `json:"entityId"`
	HierarchyLevel int32          `json:"hierarchyLevel"`
	Scope          IssueTypeScope `json:"scope"`
}

type ListResult

type ListResult struct {
	MaxResults int         `json:"maxResults"`
	StartAt    int         `json:"startAt"`
	Total      int         `json:"total"`
	IsLast     bool        `json:"isLast"`
	Values     []Dashboard `json:"dashboards"`
}

type ListSprintResult

type ListSprintResult struct {
	MaxResults int      `json:"maxResults"`
	StartAt    int      `json:"startAt"`
	Total      int      `json:"total"`
	IsLast     bool     `json:"isLast"`
	Values     []Sprint `json:"values"`
}

type ListWorkflowResult added in v0.0.3

type ListWorkflowResult struct {
	Self       string     `json:"self"`
	NextPage   string     `json:"nextPage"`
	MaxResults int        `json:"maxResults"`
	StartAt    int        `json:"startAt"`
	Total      int        `json:"total"`
	IsLast     bool       `json:"isLast"`
	Values     []Workflow `json:"values"`
}

type Owner

type Owner struct {
	Id   int64  `json:"id"`
	Type string `json:"type"`
}

type Project

type Project struct {
	Expand          string                  `json:"expand,omitempty" structs:"expand,omitempty"`
	Self            string                  `json:"self,omitempty" structs:"self,omitempty"`
	ID              string                  `json:"id,omitempty" structs:"id,omitempty"`
	Key             string                  `json:"key,omitempty" structs:"key,omitempty"`
	Description     string                  `json:"description,omitempty" structs:"description,omitempty"`
	Lead            jira.User               `json:"lead,omitempty" structs:"lead,omitempty"`
	Components      []jira.ProjectComponent `json:"components,omitempty" structs:"components,omitempty"`
	IssueTypes      []jira.IssueType        `json:"issueTypes,omitempty" structs:"issueTypes,omitempty"`
	URL             string                  `json:"url,omitempty" structs:"url,omitempty"`
	Email           string                  `json:"email,omitempty" structs:"email,omitempty"`
	AssigneeType    string                  `json:"assigneeType,omitempty" structs:"assigneeType,omitempty"`
	Versions        []jira.Version          `json:"versions,omitempty" structs:"versions,omitempty"`
	Name            string                  `json:"name,omitempty" structs:"name,omitempty"`
	Roles           map[string]string       `json:"roles,omitempty" structs:"roles,omitempty"`
	AvatarUrls      jira.AvatarUrls         `json:"avatarUrls,omitempty" structs:"avatarUrls,omitempty"`
	ProjectCategory jira.ProjectCategory    `json:"projectCategory,omitempty" structs:"projectCategory,omitempty"`
	ProjectTypeKey  string                  `json:"projectTypeKey" structs:"projectTypeKey"`
}

Project represents a Jira Project.

type ProjectKey added in v0.13.0

type ProjectKey struct {
	Self string `json:"self,omitempty" structs:"self,omitempty"`
	Key  string `json:"key,omitempty" structs:"key,omitempty"`
}

type ProjectKeys added in v0.13.0

type ProjectKeys struct {
	Keys []ProjectKey `json:"keys,omitempty" structs:"keys,omitempty"`
}

type ProjectListResult added in v0.3.0

type ProjectListResult struct {
	MaxResults int       `json:"maxResults"`
	StartAt    int       `json:"startAt"`
	Total      int       `json:"total"`
	IsLast     bool      `json:"isLast"`
	Values     []Project `json:"values"`
}

type ProjectListResult []Project

type SharePermission

type SharePermission struct {
	Id   int64  `json:"id"`
	Type string `json:"type"`
}

type Sprint

type Sprint struct {
	Id            int64     `json:"id"`
	Self          string    `json:"self"`
	Name          string    `json:"name"`
	State         string    `json:"state"`
	EndDate       time.Time `json:"endDate"`
	StartDate     time.Time `json:"startDate"`
	CompleteDate  time.Time `json:"completeDate"`
	OriginBoardId int       `json:"originBoardId"`
}

type SprintItemInfo

type SprintItemInfo struct {
	BoardId int64
	Sprint
}

type TimeTrackingConfig added in v0.0.3

type TimeTrackingConfig struct {
	WorkingHoursPerDay float64 `json:"workingHoursPerDay"`
	WorkingDaysPerWeek float64 `json:"workingDaysPerWeek"`
	TimeFormat         string  `json:"timeFormat"`
	DefaultUnit        string  `json:"defaultUnit"`
}

type Workflow added in v0.0.3

type Workflow struct {
	ID          WorkflowID           `json:"id"`
	Description string               `json:"description"`
	Transitions []WorkflowTransition `json:"transitions"` // Check fields
	Statuses    []WorkflowStatus     `json:"statuses"`
	IsDefault   bool                 `json:"isDefault"`
}

type WorkflowID added in v0.0.3

type WorkflowID struct {
	Name     string `json:"name"`
	EntityID string `json:"entityId"`
}

type WorkflowRules added in v0.0.3

type WorkflowRules struct {
	ConditionsTree interface{}               `json:"conditionsTree"`
	Validators     []WorkflowTransitionRules `json:"validators"`
	PostFunctions  []WorkflowTransitionRules `json:"postFunctions"`
}

type WorkflowStatus added in v0.0.3

type WorkflowStatus struct {
	ID         string                 `json:"id"`
	Name       string                 `json:"name"`
	Properties WorkflowStatusProperty `json:"properties"`
}

type WorkflowStatusProperty added in v0.0.3

type WorkflowStatusProperty struct {
	IssueEditable bool `json:"issueEditable"`
}

type WorkflowTransition added in v0.0.3

type WorkflowTransition struct {
	ID          string                   `json:"id"`
	Name        string                   `json:"name"`
	Description string                   `json:"description"`
	From        []string                 `json:"from"`
	To          string                   `json:"to"`
	Type        string                   `json:"type"`
	Screen      WorkflowTransitionScreen `json:"screen"`
	Rules       WorkflowRules            `json:"rules"`
}

type WorkflowTransitionRules added in v0.0.3

type WorkflowTransitionRules struct {
	Type          string      `json:"type"`
	Configuration interface{} `json:"configuration"`
}

type WorkflowTransitionScreen added in v0.0.3

type WorkflowTransitionScreen struct {
	ID string `json:"id"`
}

type WorklogDetails added in v0.13.0

type WorklogDetails struct {
	jira.WorklogRecord
	IssueId string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL