Versions Compared

Key

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

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Set+approver+in+Jira+Service+Desk+-+491000318
widthauto

Html bobswift
<iframe width="560" height="315" src="https://www.youtube.com/embed/dis0YirU0SI" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>

Call this script from a workflow transition post-function action to set the approver based on the value of a custom field.

Info

Using a SIL alias is the best practice for accessing custom field data. In the script below, the SIL alias is represented by the keyword “fruit”. For more information, go to the custom fields aliases documentation.

Code Block
if(fruit == "Apple") {
    customfield_10700 = "jmuse";
}
else if(fruit == "Orange") {
    customfield_10700 = "efoulkes";
}
else if(fruit == "Peach") {
    customfield_10700 = "jwang";
}
We've encountered an issue exporting this macro. Please try exporting this page again later.