Home General Discussion

Is it possible to display Activities related (contains activity relationship) to a Problem Record?

David_HicksDavid_Hicks Customer IT Monkey ✭

I know Service Manager doesn't use activities for PR's, but it's still possible to relate them just like you can to any other work item.  I've modified problem.js to display an Activities tab (just copied it from changerequest.js).  However, related activities don't actually display there.  Can something be done?  Thanks for any tips!

Best Answer

Answers

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    @David_Hicks
    That Activities container is looking for a different relationship.  If you do a "simple" Related Work Items add(which it sounds like you've done) you may just need to add a Related Work Item control to the PR form.
    {
                                    name: "Related WorkItems",
                                    type: "multipleObjectPicker",
                                    PropertyName: "RelatesToWorkItem",
                                    ClassId: "7ac62bd4-8fce-a150-3b40-16a39a61383d",
                                    PropertyToDisplay: {Id:"Id",DisplayName:"DisplayName",Path:"Path", Status:"Status.Name"},
                                    Scoped: true
                                },

    With that class id, it only targets MAs(for adding).  It could easily be changed to the Activity class id or even work item.
Sign In or Register to comment.