Class: Infrawrench::JiraProjectsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::JiraProjectsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.jira.projects
Instance Method Summary collapse
-
#initialize(transport) ⇒ JiraProjectsNamespace
constructor
private
A new instance of JiraProjectsNamespace.
-
#issue_types(key:, org_id: nil, request_options: nil) ⇒ Array<Hash>
List issue types valid in a project.
-
#list(org_id: nil, request_options: nil) ⇒ Array<Hash>
List Jira projects.
Constructor Details
#initialize(transport) ⇒ JiraProjectsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of JiraProjectsNamespace.
8421 8422 8423 |
# File 'lib/infrawrench/client.rb', line 8421 def initialize(transport) @transport = transport end |
Instance Method Details
#issue_types(key:, org_id: nil, request_options: nil) ⇒ Array<Hash>
List issue types valid in a project
Reads the project's own create metadata rather than the global issue-type list, so the picker cannot offer a type the project's scheme would reject. Subtasks are excluded.
Requires permission: jira:read.
GET /api/org/orgId/jira/projects/key/issue-types
Raises on 400: Bad request
8444 8445 8446 8447 8448 8449 8450 8451 |
# File 'lib/infrawrench/client.rb', line 8444 def issue_types(key:, org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/jira/projects/{key}/issue-types", path_params: { "orgId" => org_id, "key" => key }, request_options: ) end |
#list(org_id: nil, request_options: nil) ⇒ Array<Hash>
List Jira projects
Backs the project picker, so nobody has to know a project key by hand.
Requires permission: jira:read.
GET /api/org/orgId/jira/projects
Raises on 400: Bad request
8469 8470 8471 8472 8473 8474 8475 8476 |
# File 'lib/infrawrench/client.rb', line 8469 def list(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/jira/projects", path_params: { "orgId" => org_id }, request_options: ) end |