I added a Groovy script in the post-function , it's create an issue and issuelink the current issue.
However, I noticed that when it executes in the actual workflow, the issuelink API times out. Although the request timed out, the issuelink was successful in the end.
And i tested the script separately, and it worked fine. Could you please help me with this issue?
env: jira software version 9.10.1, centos7
access_log find "POST /rest/api/2/issueLink- HTTP/1.1" 500 55 50081 "-" "Java/11.0.13" "t6ydwf"
catalina.2024-02-18.log find :
18-Feb-2024 21:02:28.456 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8080-exec-3 url: /secure/CommentAssignIssue.jspa; user: sha**] (id=[24]) has been active for [121,529] milliseconds (since [2/18/24 9:00 PM]) to serve the same request for [http://*.link/secure/CommentAssignIssue.jspa?atl_token=***_lin] and may be stuck (configured threshold for this StuckThreadDetectionValve is [120] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.
code about is:
I fixed it.
The script must to be executed first
Welcome to the Atlassian Community!
Is this creating the links in another Jira system?
If it's the same Jira system the script is running in, then it's probably worth swapping to writing the code to run locally, using the java API instead of a remote REST call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your answer, it's the same Jira system the script is running in. running the Post Functions Groovy script.
Could you please give me a demo of using java API to impleme.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.