Hi,
I'm working on a post-function, which is called at the end of the "create" transition. I need to know, if the issue is a clone of another issue, but the issue links are not yet stored in the data base and
issueLinkManager.getLinkCollectionOverrideSecurity(Issue issue)
returns an empty collection. Is there another way to find out, if an issue is a clone?
The only way I found, was to check for the parameter "pkey" in the transientVars provided by the execute method.
transientVars.containsKey("pkey")
This parameter is only set on create, not on clone. But I'd rather have a more reliable way to find out, if an issue was cloned or related...
Hi Christian,
How can we get "transientVars" parameter in issue create event?
transientVars.containsKey("pkey")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you need to create a post function module. https://developer.atlassian.com/server/jira/platform/creating-workflow-extensions/
The "transientVars" are available in the execute method:
public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try to put this post function last in the list of the post functions in the create transition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
thanks for your answer, but the post-function is already the last in the list
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.