Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create Incident issue#2909

Answeredbyytiruces
ytiruces asked this question inQ&A
Jul 2, 2024· 1 comments· 4 replies
Discussion options

Hi. How to create Incident?
I think somthing like this:
issue = project.issues.create({'title': 'I have a bug', 'type': 'Incedent'}) ?
I can't find it in docs.

You must be logged in to vote

There isIncedents object.
I should tryissue_type attribute. TY

Replies: 1 comment 4 replies

Comment options

Your idea looks correct to me.

The docs are here:https://python-gitlab.readthedocs.io/en/main/gl_objects/issues.html#project-issues

As a note they are called "Issues", not "Incidents".

You must be logged in to vote
4 replies
@ytiruces
Comment options

There isIncedents object.
I should tryissue_type attribute. TY

Answer selected byJohnVillalovos
@JohnVillalovos
Comment options

I recommend to look at the upstream API documentation then:https://docs.gitlab.com/ee/api/api_resources.html

@ytiruces
Comment options

image

@JohnVillalovos
Comment options

Looks like you have it figured out 👍

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@ytiruces@JohnVillalovos

[8]ページ先頭

©2009-2025 Movatter.jp