From a4de384ade5874aaa2fd17a0bc69f863f03a9baf Mon Sep 17 00:00:00 2001 From: Justin Palmer Date: Tue, 2 Apr 2024 09:17:55 -0500 Subject: [PATCH] Fix `update_dashboard` #76: Correct Payload (#77) * Fix `update_dashboard` #76: Correct Payload Turns out during my testing, I forgot to have a permutation where I updated the permissions of a dashboard. Discovered the payload is malformed because of a lack of post-processing in the `jira` lib (this is as intended). This PR fixes the issue. * Update keys in payload dict for `update_dashboard` action from `edit_permissions/share_permissions` to `editPermissions/sharePermissions` to make the `jira` API happy. * Force Tests * Force Tests --- CHANGES.md | 4 ++++ actions/update_dashboard.py | 4 ++-- pack.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7a4ad38..73fd148 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Change Log +## 3.0.1 + +- Fixed bug with `update_dashboard` action sending the wrong payload. + ## 3.0.0 - Drop support for `python 3.6` diff --git a/actions/update_dashboard.py b/actions/update_dashboard.py index 40817da..1a68879 100644 --- a/actions/update_dashboard.py +++ b/actions/update_dashboard.py @@ -17,8 +17,8 @@ def run( { "name": name, "description": description, - "edit_permissions": edit_permissions, - "share_permissions": share_permissions, + "editPermissions": edit_permissions, + "sharePermissions": share_permissions, } ) diff --git a/pack.yaml b/pack.yaml index d61529b..5801e07 100644 --- a/pack.yaml +++ b/pack.yaml @@ -6,7 +6,7 @@ keywords: - issues - ticket management - project management -version: 3.0.0 +version: 3.0.1 python_versions: - "3" author: StackStorm, Inc.