Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleRequired apps

Power Scripts™ for Jira v2.5.3+ (server)

Level: BASIC

...

Problem

The default values for fields in the transition screen, can be changed by the user.

Solution

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Initialize+field+values+for+a+transition+screen+-+15482684
widthauto

Problem

Enable a user to change the default field values in the transition screen.

Solution

You can use Live Fields to resolve this issue. For details, refer to the accessing the current screen documentation with Live Fields.

For instance, let's explore a scenario where a rule is established to set the assignee on the "Resolve Issue" screen to the reporter. This allows configuration enables the reporter to test validate and confirm if issue resolution. If the issue is fixed. If soresolved, the reporter should can then close it.

Code Block
if(argv["screen"] == "trans_5") {
 //On the "Resolve Issue" screen, set the assignee to the reporter
 // so the user can test it and confirm that the issue is fixed.
 lfSet("assignee", reporter);
 lfDisable("assignee");
}

The code above prevents the user to change from changing the value of the assignee field.