Commit 5c8ad1a3 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch '218040-cablett-graphql-issue-id' into 'master'

Expose issue ID via GraphQL

See merge request gitlab-org/gitlab!36412
parents bbd69351 06f330de
......@@ -12,6 +12,8 @@ module Types
present_using IssuePresenter
field :id, GraphQL::ID_TYPE, null: false,
description: "ID of the issue"
field :iid, GraphQL::ID_TYPE, null: false,
description: "Internal ID of the issue"
field :title, GraphQL::STRING_TYPE, null: false,
......
---
title: Expose issue ID via GraphQL
merge_request: 36412
author:
type: changed
......@@ -5747,6 +5747,11 @@ type Issue implements Noteable {
"""
healthStatus: HealthStatus
"""
ID of the issue
"""
id: ID!
"""
Internal ID of the issue
"""
......
......@@ -15821,6 +15821,24 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": "ID of the issue",
"args": [
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "iid",
"description": "Internal ID of the issue",
......@@ -860,6 +860,7 @@ Represents a Group Member
| `dueDate` | Time | Due date of the issue |
| `epic` | Epic | Epic to which this issue belongs |
| `healthStatus` | HealthStatus | Current health status. Returns null if `save_issuable_health_status` feature flag is disabled. |
| `id` | ID! | ID of the issue |
| `iid` | ID! | Internal ID of the issue |
| `iteration` | Iteration | Iteration of the issue |
| `milestone` | Milestone | Milestone of the issue |
......
......@@ -12,7 +12,7 @@ RSpec.describe GitlabSchema.types['Issue'] do
specify { expect(described_class.interfaces).to include(Types::Notes::NoteableType) }
it 'has specific fields' do
fields = %i[iid title description state reference author assignees participants labels milestone due_date
fields = %i[id iid title description state reference author assignees participants labels milestone due_date
confidential discussion_locked upvotes downvotes user_notes_count web_path web_url relative_position
subscribed time_estimate total_time_spent closed_at created_at updated_at task_completion_status
designs design_collection]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment