# Event approval: status and bug impacting alternatives

**URL:** <https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517>\
**Category:** Implementation - Implémentation\
**Created:** [12 October 2021 15:07 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517 "2021-10-12T15:07:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhuser](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/dhuser/32/27697_2.png) [@dhuser](https://community.dhis2.org/u/dhuser)\
**Post date:** [12 October 2021 15:07 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517/1 "2021-10-12T15:07:08Z")

</div>

Hello!

Requests for event approvals have come up in the past in the community, for example in these threads:

- [Regarding event approval](https://community.dhis2.org/t/regarding-event-approval/5016)
- [Tracker and event programs: compulsory fields, completing, approving](https://community.dhis2.org/t/tracker-and-event-programs-compulsory-fields-completing-approving/38079)
- [Data approval workflow for programs - #2 by Jim\_Grace](https://community.dhis2.org/t/data-approval-workflow-for-programs/3253/2)
- [Data Approval for Programmes - #4 by Hari\_Krishna](https://community.dhis2.org/t/data-approval-for-programmes/3096/4)

the feature request is tracked in this (old-timer) issue marked as a To Do: [DHIS2-120](https://jira.dhis2.org/browse/DHIS2-120). Longer-term, is the event approval topic still part of the current roadmap?

Until the support for this process is in dhis2-core we need workarounds for event approvals.

One of the **alternatives** could look like this:

1. Add a yesOnly data element (checkbox) to a program stage (or within its own section).
2. Implement a program rule that hides the DE (or the section) if you are NOT assignee of a user role
3. In all the Program Indicators of the program, additionally filter for the yesOnly DE to be true (meaning: filter events out that were not “approved”).
4. Show line lists in Event Reports to track which Events are approved and which are not.

**Bug:** Unfortunately this process is blocked in step 2: the function to trigger based on user role membership does not function in the Capture app, i.e. the `d2:hasUserRole` function for program rule conditions: [**DHIS2-11977**](https://jira.dhis2.org/browse/DHIS2-11977). This program rule function is the only one acting on the current logged-in user, so it’s unique, powerful, but broken.

For reference, here are two similar fixes made for Tracker Capture (but not for the new Capture app):

- [DHIS2-7984](https://jira.dhis2.org/browse/DHIS2-7984)
- [DHIS2-8280](https://jira.dhis2.org/browse/DHIS2-8280)

@Gassim would it be possible to look into addressing DHIS2-11977 for the next patch release 2.36.5 and 2.37+ please?

---

<div class="post-metadata">

**Author:** ![diallotafsir52](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/diallotafsir52/32/27283_2.png) [@diallotafsir52](https://community.dhis2.org/u/diallotafsir52)\
**Post date:** [13 October 2021 08:23 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517/2 "2021-10-13T08:23:23Z")

</div>

Hello,  
Thank you @David for this feedback. At ICRC we are blocked in our deployment for this issue. @Gassim is it possible to have this for the next patch releases?

---

<div class="post-metadata">

**Author:** ![dpastorel](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/a3d4f5/32.png) [@dpastorel](https://community.dhis2.org/u/dpastorel)\
**Post date:** [13 October 2021 08:37 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517/3 "2021-10-13T08:37:24Z")

</div>

Thank you so much @dhuser . As mentioned by @diallotafsir52 , it would be really appreciated if this issue could be solved in the next release, as it is blocking our project deployments.

---

<div class="post-metadata">

**Author:** ![diallotafsir52](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/diallotafsir52/32/27283_2.png) [@diallotafsir52](https://community.dhis2.org/u/diallotafsir52)\
**Post date:** [1 February 2022 13:37 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517/5 "2022-02-01T13:37:53Z")

</div>

@Gassim I’m not sure if you have seen this.

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [1 February 2022 19:55 UTC](https://community.dhis2.org/t/event-approval-status-and-bug-impacting-alternatives/44517/6 "2022-02-01T19:55:59Z")

</div>

Hi yes thanks! I’ve asked for support and these issues are being followed directly with the developers on Jira! Sorry I didn’t have the update yet.

Here’s a new update from @Markus in Jira issue [DHIS2-11977](https://jira.dhis2.org/browse/DHIS2-11977):

> [Markus Bekken](https://jira.dhis2.org/secure/ViewProfile.jspa?name=markus) added a comment - 9 hours ago
> 
> Hey there [Mamadou Tafsir Diallo](https://jira.dhis2.org/secure/ViewProfile.jspa?name=diallotafsir52) - we are considering this issue for the upcoming tracker milestone.

Thanks!
