How do I debug a transition flow?

Michael April 17, 2014

How do I debug a post function workflow in OnDemand?

When I hit a button to "approve" an issue, it fires off the post functions but then I cannot see the issue (as the Administrator). I have permissions to the project, etc, but those single issues are no longer appearing for me at all.

My post functions are:

  1. Set issue status to the linked status of the destination workflow step.
  2. Add a comment to an issue if one is entered during a transition.
  3. Update change history for an issue and store the issue in the database.
  4. If user is a member of the Administrators role, set issue security level to Users.
  5. Assign the issue to the lead developer.
  6. Re-index an issue to keep indexes in sync with the database.
  7. Fire a Generic Event event that can be processed by the listeners.

I think it could be #4, but I cant confirm. Although I am in the Administrators issue security and the Users, I cant see the issue anymore.

How do I access issues I cant see as the Admin?

2 answers

0 votes
Ahmed_Bilal April 17, 2014

Use permission helpler in admin to check why you are not able to browse issue.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 17, 2014

I also suspect step 4. I have a very strong feeling that although you think you're a user who matches the security levels, that is not the way it is set up.

What, exactly, does your permission scheme say for "browse"? And what are the details of your security levels?

Michael April 17, 2014

I have tried Permission browser, but it will not let me enter in the issue I am trying to check. It doesnt appear in the dropdown and when I manually enter it, says to select an issue (as if the one I am trying to access doesnt exist or i dont have permissions for it).

When I try to access the issue itself, it says permission violation.

I've added adminstrators and even my user account specifically to browse, but it doesnt change the permission error.

When I use Permission Helper on the project side, it says I am in the security level and have full access.

I've also reindexed.

If I take step 4 out of the post functions it works, but really, I need to be able to shift the Issue Security and I was trying to avoid having to do it manually every time.

Suggest an answer

Log in or Sign up to answer