4 Replies Latest reply on Jan 19, 2009 5:15 PM by Christina Seay

    Add comment automatically

    Adam Meyer
      Is there a way to have Enterprise enter a predetermined comment during a state change?


      Thanks,

      Adam
        • Add comment automatically
          Christina Seay
          There may be a way to set the actual comment with an add-in...

          But you could create a custom variable for the comment put a field on your data cards to show that comment, then you can use transition actions to set the variable and that'll update it on the card.
          • Add comment automatically
            Adam Meyer
            Thanks Christina,

            I wasn't very clear in my first post.

            I was thinking of the comments that are entered in the history.

            • Add comment automatically
              Christina Seay
              You were clear... that's why I said that there may be a way to set the "actual comment" with an add-in...

              I don't know of any way with dispatch or with transition actions to actually update that comment though.
              • Add comment automatically
                Christina Seay
                Looks like you're going to be stuck learning how to do add-ins.... lol.... seems as though you can do it with an add-in:

                IEdmHistoryUpdate::UpdateVersionComment
                Call this method to update a version comment. The actual update is not performed until you call the CommitUpdates method.

                IEdmHistoryUpdate::UpdateRevisionComment
                Updates the comment of a revision. The update will not actually be written to the database until the CommitUpdates method is called.