Context parameter to correctly check if issue is editable

Hello,

We have been using the condition.is_issue_editable context parameter to check if the issue is editable.

However, we have found that if you restrict editing by using the jira.permission.edit.projectrole workflow status property, condition.is_issue_editable still returns true when the issue isn’t editable to the current user.

We ended up testing condition.has_issue_permission(permission=EDIT_ISSUES), which correctly returns false in this use case.

What’s the difference between these two conditions?
Which one is more correct to check if an issue is editable?
Is there any situation where the results are reversed? I.e. condition.is_issue_editable returns false but condition.has_issue_permission(permission=EDIT_ISSUES) returns true.

3 Likes