Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The problem

Were you ever wondering why you queues looks so confusing? 

...

  1. Hide Summary in Edit Fields configuration in Service Desk Project settings
    1. As you have to provide some predefined value, use for example "temp_value", as this text will exist for hundredth of second, it doesn't really matter what you will use
  2. Enter the Workflow configuration
  3. Select Create transition (that first one with circle at the beginning) 
  4. Select Post Functions
  5. Click Add Post Function
  6. Select "Set field value (JMWE add-on)" and configure in following way
    1. Field: Summary
    2. Value Type: Constant or Groovy Template
    3. Value: 

      Code Block
      languagegroovy
      <%= issue.get("reporter")?.displayName %> | <%= issue.get("customfield_13918")?.name %> | <%= issue.get("customfield_14370")?.get(null)?.value %>

       

    4. Leave all other checkboxes unchecked
  7. Set the post-function order JUST before the re-index an issue step!
    1. JMWE will warn you, that this should be before Create this issue originally, but trust me. It wont work (smile) 

Result

Instead of having randomly by user filled Summary

...

you will got results similar to this one:


Tip
titlePro Tip

You can use different naming rules by using "Run this post-function only if the following condition is true:"

In my case, I do have different Summary scripts for Debit vs. Credit cards, whose are using different custom field to be put into the Summary.

Conditions are based on checking true|false if the value for Debit, or the value for Credit is present.

This will of course result into two post functions with two conditional executing.