Need this function in workflow to assign value to custom fields before it is fired.
Nic Brough, I do not agree. This is not a nonsense.
Pre actions is a very good idea.
1) Firstly, it will simplify very much the default values for workflow.
So you can fill default values selected by workflow not by context of custom field.
2) Secondly it will be possible (at last) that you can put or change the default value to the user field and then the user can change it. It cannot be in post function.
3) Lastly, you can put any logic to the pre-function not only fill values but you can make possible to fill in the value if other field is filled in or if user has something and so on.
I just think it will help in some situations that now cannot be done or very complicated.
No, as "pre function" is nonsense. I think you mean you want to have default selections for values in fields.
JIRA has default values for issue create.
It does not do default selections for edit or transition screens because forcing a default over the top of potentially currently correctly set fields would break your data and upset the users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think this would be a useful feature, especially as it relates to setting the Assignee. Currently I can either use a post function to set the assignee, or I can allow the user doing the action to specify. It would be useful to set to a given (default) user before showing the dialog, but still allow the user to change it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually this is a good idea if there are many transitions to the state and you need to apply same function to all of them. With post functions you need to copy them to all affected transitions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PreFunction is very good idea. It is a pity that Jira doesn't support it.
You can set some fields conditionally in transition screens. They doesn't need to be stored to the issue in this time. They can be only on screen (in memory). They will be stored in issue after modifying and confirming by the user.
If user cancel transition issue will be not modified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.