Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Suggestions to rewrite complicated Postfunction from Jira Workflow Toolbox

Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2024

 

 

We have the below script currently used in the JWT plug-in that we need to change to a postfunction in Groovy, ScriptRunner or Project Automation. Any suggestions are appreciated:

 

Create issue link based on the following parameters:
Issues returned by JQL query “issueFunction in linkedIssuesOfRecursive("issueKey =%{Issue key}") and issuetype="PS Change Request"” will be linked with issue link type is part of to every issue returned by JQL query issueFunction in linkedIssueOf("issueKey=%{Issue key}", "is part of").

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2024

Hi @Manoj Gangwar

It can very well be simplified using ScriptRunner's HAPI feature. Once I have more information, I can try to provide a sample script.

Could you provide more information, e.g., when does the post-function triggers the script? Is it during the Create transition or some other transition?

Are there any fields or conditions involved?

Thank you and Kind regards,
Ram

Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2024

This post function triggers on issue creation. 

There is no field condition applied.

posftfun.PNG

DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events