Create issue
Create an issue, filed in Linear first and mirrored to Productlane. Requires Linear to be connected and the issues:write scope.
curl -X POST "https://productlane.com/api/v2/issues" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"team_id": "string",
"state_id": "string",
"priority": 0
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Body
titlestringrequireddescriptionstringteam_idstringrequiredLinear team id. Fetch from
GET /meunderlinear_team_ids.state_idstringrequiredLinear workflow state id. Fetch from
GET /issues/workflow-states?team_id=....priorityany ofrequiredLinear issue priority. 0 = No priority, 1 = Urgent, 2 = High, 3 = Normal, 4 = Low.
project_idstringLinear project id to attach the issue to.
assignee_idstringLinear user id of the assignee.
label_idsstring[]Linear label ids to attach.
is_visiblebooleanWhether the issue is shown on the customer portal. Defaults to hidden.
portal_instance_idsstring[]Every portal the item is on, from GET /portal/instances. Use "__main__" for the Main portal. Replaces the current list. The item shows on these portals only while
is_visibleis true.
Response
Successful response
idstringrequiredidentifierstringrequiredtitlestringrequireddescriptionstring | nullrequiredprioritystringrequiredstatusstringrequiredlinear_team_idstringrequiredurlstringrequiredproject_idstring | nullrequiredsort_ordernumberrequiredtotal_scorenumberrequiredis_visibleboolean | nullrequiredportal_instance_idsstring[]requiredcreated_atstringrequiredupdated_atstringrequiredlinear_ticket_idstringrequired
{
"id": "string",
"identifier": "string",
"title": "string",
"description": "string",
"priority": "string",
"status": "string",
"linear_team_id": "string",
"url": "string",
"project_id": "string",
"sort_order": 0,
"total_score": 0,
"is_visible": true,
"portal_instance_ids": [
"string"
],
"created_at": "string",
"updated_at": "string",
"linear_ticket_id": "string"
}