jira

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJiraIssue

func AddJiraIssue(jiraBug *JiraBug, auth string) (ret interface{}, err error)

添加jira问题单

func AddJiraRemark

func AddJiraRemark(remarks []string, key string, auth string) (err error)

AddJiraRemark 添加jira问题备注

func ProjectIsExist

func ProjectIsExist(projectid string) (bool, error)

判断项目在jira系统中是否存在

Types

type FieldOption

type FieldOption struct {
	Id          string  `gorm:"column:ID"`
	CUSTOMFIELD float64 `gorm:"column:CUSTOMFIELD"`
	Value       string  `gorm:"column:customvalue"`
}

type JiraBug

type JiraBug struct {
	Project     map[string]string        `json:"project"`                     // 项目
	IssueType   map[string]string        `json:"issuetype"`                   // 问题类型
	Summary     string                   `json:"summary"`                     // 主题
	Description string                   `json:"description"`                 // 描述
	VersionType map[string]string        `json:"customfield_17101,omitempty"` // 版本类型
	Areas       map[string]string        `json:"customfield_17302"`           // 领域
	Components  []map[string]interface{} `json:"components"`                  // 模块
	Versions    []map[string]interface{} `json:"versions"`                    // 影响版本
	Level       map[string]string        `json:"customfield_15121"`           // 严重程度
	RecurRate   map[string]string        `json:"customfield_17400"`           // 重现概率
	Occurdate   string                   `json:"customfield_17200"`           // 发生时间
}

Field中的属性值

type JiraBugController

type JiraBugController struct {
	common.BaseController
}

JiraBugController operations for JiraBug

func (*JiraBugController) GetProject

func (c *JiraBugController) GetProject()

从jira上获取项目信息 @router /v1/jira/project/:id [get]

func (*JiraBugController) GetProjectAttrs

func (c *JiraBugController) GetProjectAttrs()

获得field可选属性 @router /v1/jira/project/field/:id/option [get]

func (*JiraBugController) GetProjects

func (c *JiraBugController) GetProjects()

从jira上获取项目列表 @router /v1/jira/project [get]

func (*JiraBugController) JiraKeyIsExist

func (c *JiraBugController) JiraKeyIsExist()

判断JiraKey是否存在 @router /v1/jira/keyexist [get]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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