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.
8730 8731 8732 |
# File 'lib/infrawrench/client.rb', line 8730 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
8753 8754 8755 8756 8757 8758 8759 8760 |
# File 'lib/infrawrench/client.rb', line 8753 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
8778 8779 8780 8781 8782 8783 8784 8785 |
# File 'lib/infrawrench/client.rb', line 8778 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 |