Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New property type status #34

Closed
lastorel opened this issue Sep 26, 2022 · 2 comments · Fixed by #38
Closed

New property type status #34

lastorel opened this issue Sep 26, 2022 · 2 comments · Fixed by #38
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@lastorel
Copy link
Owner

Property object example (database retreiving):

{"id": "QobG",
 "name": "Status",
 "type": "status",
 "status": {"options": [{"id": "j?cF", "name": "Custom todo", "color": "gray"},
   {"id": "7abcd74b-ff0b-406e-8fa6-37e49511502d",
    "name": "Not started",
    "color": "default"},
   {"id": "ea4b5dd9-a5fc-49c5-bbdd-a45091d7aa6b",
    "name": "In progress",
    "color": "blue"},
   {"id": "a04bcbf0-0935-4e44-bd4b-d7e4591f0c4c",
    "name": "Done",
    "color": "green"}],
  "groups": [{"id": "caf45982-f104-4511-8ef8-b447fe9a4feb",
    "name": "To-do",
    "color": "gray",
    "option_ids": ["j?cF", "7abcd74b-ff0b-406e-8fa6-37e49511502d"]},
   {"id": "75329913-30d4-4d7a-be91-e33b7834576d",
    "name": "In progress",
    "color": "blue",
    "option_ids": ["ea4b5dd9-a5fc-49c5-bbdd-a45091d7aa6b"]},
   {"id": "b38773ca-8397-4d20-9271-5c135e98b2a2",
    "name": "Complete",
    "color": "green",
    "option_ids": ["a04bcbf0-0935-4e44-bd4b-d7e4591f0c4c"]}]}}

Property value example (Page retreiving):

{"id": "QobG",
 "type": "status",
 "status": {"id": "7abcd74b-ff0b-406e-8fa6-37e49511502d",
  "name": "Not started",
  "color": "default"}}
@lastorel lastorel added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 26, 2022
@lastorel lastorel self-assigned this Sep 26, 2022
@lastorel
Copy link
Owner Author

Status options and groups are not configurable. You can create new Property without any options. And also you cannot add new options while create PropertyValue (aka "select"). You can only choose from existing options.

lastorel added a commit that referenced this issue Nov 25, 2022
@lastorel lastorel mentioned this issue Nov 25, 2022
@lastorel lastorel linked a pull request Nov 25, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant