jira

package
v0.0.0-...-7a729f8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJiraIssue

func AddJiraIssue(jiraBug *JiraData, 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 Attachment

type Attachment struct {
	Id       string `json:"id"`
	Self     string `json:"self"`
	FileName string `json:"fileName"`
	Size     int64  `json:"size"`
	Content  string `json:"content"`
}

type Author

type Author struct {
	Name string `json:"name"`
}

type Comments

type Comments struct {
	Id     string `json:"id"`
	Author Author `json:"author"`
	Body   string `json:"body"`
}

type CommonParam

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

type FieldOption

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

type JiraData

type JiraData struct {
	SyncKey         string                   `json:"customfield_20400,omitempty"`  // 对方的KEY
	Summary         string                   `json:"summary,omitempty"`            // 概要
	Level           map[string]interface{}   `json:"customfield_15121,omitempty"`  // 严重程度
	Versions        []map[string]interface{} `json:"versions,omitempty"`           // 影响版本
	Project         map[string]interface{}   `json:"project,omitempty"`            // 项目
	Components      []map[string]interface{} `json:"components,omitempty"`         // 模块
	RecurRate       map[string]interface{}   `json:"customfield_17400,omitempty"`  // 重现概率
	Description     string                   `json:"description,omitempty"`        // 描述
	Occurdate       string                   `json:"customfield_17200,omitempty"`  // 发生时间
	IssueType       map[string]interface{}   `json:"issuetype,omitempty"`          // 问题类型
	Areas           map[string]interface{}   `json:"customfield_17302,omitempty"`  // 领域
	VersionType     map[string]interface{}   `json:"customfield_17101,omitempty"`  // 版本类型
	Priority        map[string]interface{}   `json:"priority,omitempty"`           // 优先级
	Milestone       map[string]interface{}   `json:"customfield_16800,omitempty"'` // 里程碑版本
	CurrentOwner    map[string]interface{}   `json:"assignee,omitempty"`           // 处理人
	ExpectStart     string                   `json:"customfield_16729,omitempty"`  // 预计开始
	ExpectEnd       string                   `json:"customfield_16730,omitempty"`  // 预计结束
	Source          *CommonParam             `json:"customfield_16100,omitempty"`  // 来源
	Product         []CommonParam            `json:"customfield_16107,omitempty"`  // 产品
	DemandAttr      *CommonParam             `json:"customfield_19400,omitempty"`  // 需求属性
	TargetMarket    []CommonParam            `json:"customfield_19700,omitempty"`  // 目标市场
	OtherFields     []CommonParam            `json:"customfield_16104,omitempty"`  // 是否涉及其它领域
	DesignDocuments string                   `json:"customfield_16617,omitempty"`  // 设否需要设计文档
	Risk            string                   `json:"customfield_17300,omitempty"`  // 风险
	Duedate         string                   `json:"duedate,omitempty"`            // 到期日
	Comment         *struct {
		Comments []Comments `json:"comments"`
	} `json:"comment,omitempty"`
	Attachment []Attachment `json:"attachment,omitempty"` // 附件信息

}

Jump to

Keyboard shortcuts

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