I need to know issue key when I create issue but it is null at that time.
As I know that Post Function means action after transition, but when I use at "Create Issue" transition, how can I get issuekey?
please give me a hand anybody
Post-functions are not "after a transition", they are the last set of things executed as a transition runs, they are very much part of a transition.
No, it's too early to have one in the post-functions of a create process. You can't know it until the issue has been created, and it won't be until after the "create issue initially". When you are running post-functions, they run in the context of the issue that was set before the issue was created, when you don't know the issue key. If you look at the default post-functions, you'll see indexing and event firing post-functions which do not work off the issue key (because they don't have one). You could try to replicate how they identify the issue.
I would suggest using a listener instead - the "issue created" event will point to the newly created issue which will, by then, have a key.
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.