We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.
For more information around feature requests in the Cireson Community click here.
Keep Tasks pane available for closed work items
To illustrate the point, we have a mix of OOB and custom tasks that would still be useful with closed CRs:
- Print (Ever needed to produce a change record for an audit response, anyone?)
- Time zone conversion table (displays all date/time fields in other time zones where we have offices--I would love to re-write this as an inline feature within the form itself, but this was easier to implement)
- Activity history--thanks for the code!
- Copy this change (not having this is causing our users the most grief!)
- Paging (lets users move from tab to tab without scrolling back to the top)
Comments
As mentioned in the comments, ajaxStop is not an ideal method to use, but it is the only one that appears to occur at the right time, after some testing. Although it is meant to occur after all ajax calls have finished, it actually fires multiple times, which is not all that surprising. Therefore, you want to check if your task menu already exists.
$(document).ready() and $(document).load() both occur too soon (objects do not exist yet), and overloading elements at ready, bind, etc. seems not to work at all, as though those events are being blocked somehow.
On a CR (or other work item) that is not closed, the list items do not use an onClick event, but instead appear to be bound to functions that are stored within a JS object. Those custom task functions exist even in a closed work item, but I did not see a simple way to bind them at the right time. Perhaps someone with greater expertise can improve upon this, but it is a start.
I have to assume that Cireson hid the task panel for closed work items intentionally, but doing so noticeably hinders several of our processes. We have been leaving all our CRs in "Completed" status and leaving the Auto Close functionality dormant up to now. With this in place, we can utilize closed work items more effectively until they are ready to be groomed.
I hope this helps someone else, until the feature is added!
Cheers Tom, much appreciated.
Personally, this seems like more of a bug then a feature request.
I don't understand why the code shouldn't run on a closed work item?
Cheers,
Adrian
Any Chance this feature request can be renamed to: "Enable running of 'Custom.js' on Closed Work Items'?
Getting the timing right (i.e. so your code doesn't run before the form is drawn/bound) requires a mutation observer and some testing, though. Also, calling the Cireson tasks has proved to be a challenge. I had to walk away from this before I was able to solve it.
At the end of the day, I think we both want the same thing--to be able to treat closed tickets similarly to In Progress ones, even if most of the fields are no longer able to be edited, because even closed tickets are still part of some of our processes. I am flexible regarding how that is achieved by Cireson, and regarding what phrasing brings in the votes.
Maybe.. "Allow matched custom.js functionality for closed work items"?
i might be able to get one of the guys to change it if we can agree on something?
Cheers,
Adrian
The one thing I have not quite figured out how to do yet is to add out-of-box tasks from Cireson to the list.
Thanks!
Has anybody else made any traction on this? Printing closed work items would be extremely useful for completing our audit documentation.
@Tom_Hendricks I'm looking at the code and it seems like the end of the code block is incomplete, or am I missing something?