Skip to content

[BUG] Incorrect completion of task series when resolving alarm notification #2231

@sonymaster

Description

@sonymaster

Describe the bug
When completing a single instance of a recurring daily task via the Android notification, the entire task series is incorrectly marked as COMPLETED. At the same time, two task entries (one in the past and one for the next day) remain visible as not completed in the task list, even though the series itself is already marked as completed internally.

To Reproduce

  • Enable sticky alarms in Alarm settings
  • Enable Limit recurring in App bar behaviour
  • Create a new task with a daily recurrence, ends never
  • Start Date: today date 0:00 am
  • Due Date: today date 11:00 pm
  • Alarms on start
  • Save the new task

Now a new notification is present in android notification bar, where you can select +1 hour, +1 day or Done.

  • Select Done

As result you see two entries of the task. One with Start in past and another with Start tomorrow 0:00.
Both are not checked as completed.

  • Open one of these task and click on Go to series
  • You can see, that the Completed Box is checked

I have also checked the synced ics data. The series is marked as COMPLETED

BEGIN:VCALENDAR 
VERSION:2.0 
PRODID:DAVx5/4.5.10-ose ical4j/3.2.19 (at.techbee.jtx) 
BEGIN:VTODO 
DTSTAMP:20260331T085244Z 
UID:b75a5acc-f8aa-48df-9919-2d655a9b5873 
SEQUENCE:14 
CREATED:20260331T084724Z 
LAST-MODIFIED:20260331T085209Z 
SUMMARY:Test task 
STATUS:COMPLETED 
DTSTART:20260331T000000 
RRULE:FREQ=DAILY 
COMPLETED:20260331T085209Z 
X-COMPLETEDTIMEZONE:ALLDAY 
PERCENT-COMPLETE:100 
PRIORITY:0 
DUE:20260331T230000 
BEGIN:VALARM 
ACTION:DISPLAY 
TRIGGER;RELATED=START:PT0S 
END:VALARM 
END:VTODO 
END:VCALENDAR

Expected behavior
If a task instance of a task series produces a notification, only the current instance should be marked as completed. Not the whole series. Furthermore, the two entries in the task overview should not be displayed as not completed.

Device and version

  • Device: Samsung Galaxy A55
  • Android version: Android 16
  • jtx Board version: 2.15.00.ose (215000004)
  • Downloaded from: f-Droid

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions