Hello,
I have post-function script (called in "Create Issue" transition) which sets ”Team” custom field to some particular value which is taken from component description. The script works fine.
Now I would like to implement the same procedure but when issue is edited, e.g. user noticed that wrong component has been selected and modifies the components, and modified component should select another team.
I think "Edit" is not part of workflow, and I do not know when and where script can be called. Could you please advise how "automatical selection" for "Edit Issue" can be implemented?
Thank you in advance.
Regards, Georgiy
What you need is a event listener
have a look at the tutorial here for a general picture
have fun coding :)
As Parthis says, you'll need a listener. This is because the "edit" function (and most of the other operations) do not have hooks for post-functions, so there's actually nowhere to install and run your code. Listeners pick up events, which "edit" always fires.
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.