ffl_core.assignment_notice¶
Source: apps/ffl_core/ffl_core/assignment_notice.py · 5 endpoint(s)
Generated by
make api-docs— do not edit by hand.
acknowledge¶
POST /api/method/ffl_core.assignment_notice.acknowledge
Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).
Say you saw these assignments. Each one is yours or the call is refused; one that is closed,
cancelled, gone or never asked is skipped. The first time, the time is stored on the ToDo and the document gets a timeline comment; after that it only dismisses today's reminder.
| arg | type | required | default | description |
|---|---|---|---|---|
names |
array | yes | — | ToDo names (a list, or its JSON), at most 50. |
Returns: What is still waiting, as :func:pending returns it.
apps/ffl_core/ffl_core/assignment_notice.py:206
done¶
POST /api/method/ffl_core.assignment_notice.done
Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).
Close one of your tasks. Only the person it is assigned to can; one already closed or
cancelled is left as it is. Closing goes through Frappe's own assignment close, so the assignment comes off the document, and the document gets a timeline comment.
| arg | type | required | default | description |
|---|---|---|---|---|
name |
string | yes | — | ToDo name. |
Returns: {"closed": False when it was already closed or cancelled, "open": how many open tasks you have left}.
apps/ffl_core/ffl_core/assignment_notice.py:276
my_tasks¶
POST /api/method/ffl_core.assignment_notice.my_tasks
Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).
Your open tasks: every Open ToDo assigned to you, including system alerts that never pop
up; oldest first (at most 200).
Returns: [{"name": ToDo, "assigned_by": full name, "reference_type", "reference_name", "title" (all three None when the document is gone or there is none), "url": where a CRM lead or deal opens in CRM (None for anything else, which opens as a desk form), "description": plain text, "priority", "date": due date or None, "creation", "seen_on": when you said you saw it or None, "asks": whether it asked you to say you saw it}].
apps/ffl_core/ffl_core/assignment_notice.py:244
pending¶
POST /api/method/ffl_core.assignment_notice.pending
Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).
Your assignments waiting for you to say you saw them, and the ones you saw but have not
closed that are due today's reminder; oldest first (at most 50).
Returns: [{"name": ToDo, "assigned_by": full name, "reference_type", "reference_name", "title" (all three None when the document is gone or there is none), "url": where a CRM lead or deal opens in CRM (None for anything else, which opens as a desk form), "description": plain text, "priority", "date": due date or None, "creation", "seen_on": when you said you saw it or None, "reminder": True for one you already saw}].
apps/ffl_core/ffl_core/assignment_notice.py:191
task_count¶
POST /api/method/ffl_core.assignment_notice.task_count
Auth (derived from code): Any authenticated user — no explicit role gate at function entry (deliberate open reads document this in Permissions).
How many open tasks you have (the number next to My tasks).
Returns: The count of Open ToDos assigned to you.
apps/ffl_core/ffl_core/assignment_notice.py:266