Using Blitz Power Actions and the power of SIL, you can do a lot of things with your JIRA. For example, you can log work on behalf of another user.
...
The button will be always enabled and it's essentially a script asking for a confirmation that we want to log work for another user. If the answer to the confirming confirmation question on the first screen is "yes", then the action will be enabled and disabled otherwise, otherwise the action will be disabled.
So the The button contains a confirmation question and on its action screen we save the selected value:
screen script:
Code Block BA_setActionTitle("Are you sure?"); BA_createRadioGroup("Sure?", {"yes", "no"}, "yes", false, true, "You are about to log work on behalf of another user. This may have somecertain consequences. Are you sure you want to do this?"); BA_setExecuteButtonText("Submit");
action script:
Code Block string option = BA_getSingleValue(argv, "Sure?"); BA_setBlitzAttribute("option", option);
...
In the screen script we configure the fields that we need in order to log the work:
Code Block |
---|
BA_setActionTitle("Log work as user"); BA_createUserPicker("User", currentUser(), false, true, ""); BA_createInput("Time Spent", "", false, true, "(eg 3w 4d 12h)"); BA_createDateTimePicker("Date Started", currentDate(), false, false, ""); BA_createRadioGroup("Remaining Estimate", {"Adjust automatically", "Use existing estimate"},"Adjust automatically", false); BA_createTextArea("Work Description", "", false); BA_setExecuteButtonText("Done"); |
...
That's how the implementation looks like in the issueticket: