Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request an example of creating a Jira event for a custom field #257

Closed
839588378 opened this issue Mar 1, 2020 · 6 comments
Closed

Request an example of creating a Jira event for a custom field #257

839588378 opened this issue Mar 1, 2020 · 6 comments

Comments

@839588378
Copy link

839588378 commented Mar 1, 2020

I don't know how to use this unkonw field,please give an example of creating a Jira event for a custom field,Thanks!!

12
image

@ghostsquad
Copy link
Contributor

ghostsquad commented Mar 1, 2020

@839588378 see if this comment and the following comments on that issue help.

#178 (comment)

@839588378
Copy link
Author

我这样试就可以了
//下拉框单选
custome["customfield_10209"] = map[string]string{"value": assessment}

i := jira.Issue{
	Fields: &jira.IssueFields{
		//经办人
		Assignee: &jira.User{
			Name: jira_user,
		},
		Description: utf8toASCII(description),
		//问题类型:应用漏洞
		Type: jira.IssueType{
			ID: "10300",
		},
		//项目
		Project: jira.Project{
			ID: "10308",
		},
		//概要
		Summary: utf8toASCII(summary),
		//自定义字段
		Unknowns: custome,
	},
}

@andygrunwald
Copy link
Owner

@839588378 Would you mind adding a PR with updating the docs on this? This would be helpful for a lot of people.

@github-actions
Copy link

github-actions bot commented Jul 2, 2020

This issue has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jul 2, 2020
@github-actions github-actions bot closed this as completed Jul 9, 2020
@fffinkel
Copy link
Contributor

Re-opening stale comment! I'll be helping out with the project a bit and Stale Bot is no more, so we're re-opening tickets that were closed due to age.

@preroq
Copy link

preroq commented Aug 29, 2021

I think that this issue can be closed? I think that @manuelbcd did what was required in the PR: #358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants