Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Workaround for the myPending(), pendingBy() bug?

Mikael Sandberg Community Leader Feb 09, 2021

Does anyone have a good workaround for JSDCLOUD-5596 (myPending, pendingBy bug? We have a procurement workflow that requires approvals from multiple people before the ticket can be transition and not being able to report on who still needs to approve a ticket is bit of a pain. Does anyone have a good workaround for it?

1 answer

1 accepted

0 votes
Answer accepted

Hello Mikael,

Thank you for your question.

I’m afraid to say that currently, there is no workaround for that. 

I tested on my local site and doesn’t matter if it’s filtered by a single user (using the account id), it will show all tickets pending approvals. I also checked the automation thinking of copying the value of the field or sending an email, but I didn’t find the option to remove who already approved.

For now, it’s possible to see who still needs to approve directly on the ticket or via API using: https://xxxxxx.atlassian.net/rest/servicedeskapi/request/IT-123/approval

Screen Shot 2021-02-11 at 18.18.33.png

Other than that, there are no other options we can think of for now.

Kind regards,
Angélica

Mikael Sandberg Community Leader Feb 11, 2021

Thanks @Angélica Luz I suspected that. I assume that when someone approves it triggers a edit event, correct? If so then I should be able to work around it by trigger a web request and use tray.io to get the pending approvers and return that to Jira via an incoming web hook that update a field on the ticket.

I tested here and it doesn’t update the issue. I added more than one approver and approved with only one account. Nothing was added to the ticket history and the Updated X minutes ago also didn’t change.

Mikael Sandberg Community Leader Feb 12, 2021

Okay, that is what my testing shows as well. I guess I could run a script on a schedule  to see if approvals are still pending. Thanks for checking @Angélica Luz!

Like Angélica Luz likes this
Mikael Sandberg Community Leader Feb 26, 2021

Just to follow up on this if anyone else is looking for a solution for this. This is how I solved it. You can use Search for issues using JQL (GET), the JSON result contains approvals. I then filter out the ones that are still pending and use an incoming web hook automation to populate a multi user pick list on the request.

Like Angélica Luz likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Submit your Jira Service Management use case and win!

Hi everyone - in case you haven’t heard, we’re hosting the show of the century on November 10th: High Velocity: ITSM World Tour.     This virtual, concert-themed experience...

276 views 1 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you