Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Issue is not available. #36

Open
forelock7 opened this issue Jul 13, 2023 · 22 comments
Open

Post Issue is not available. #36

forelock7 opened this issue Jul 13, 2023 · 22 comments
Labels
help wanted Extra attention is needed

Comments

@forelock7
Copy link

forelock7 commented Jul 13, 2023

After integration ReportPortal with Cloud Jira:

  • Link Issue is working
  • Post Issue is disabled

Screenshot 2023-07-13 at 13 28 04

What is wrong?

@rutika89
Copy link

I am facing the same issue. Is there any workaround to fix it?

@ShivaPotlapelli
Copy link

Any update on the issue ??

@DzmitryHumianiuk
Copy link
Member

@rutika89 @forelock7 @ShivaPotlapelli, please ensure your Jira Cloud is properly connected.
https://reportportal.io/docs/plugins/JiraCloud#add-new-project-jira-cloud-integration

The Link issue option becomes available once the integration is added, even if it might not be configured correctly.
The Post issue option will only be available when the integration is correctly configured and a connection has been established.

@DzmitryHumianiuk DzmitryHumianiuk added the help wanted Extra attention is needed label Sep 8, 2023
@ShivaPotlapelli
Copy link

ShivaPotlapelli commented Sep 9, 2023

@DzmitryHumianiuk
### I can say the JIRA Cloud is configured correctly as it is able to get issue types based on the project key.

As per the network call it is unable to load the get issue fields and DEFAULT PROPERTIES FOR ISSUE FORM is not showing up.
Screenshot 2023-09-09 at 10 45 35 AM
Screenshot 2023-09-09 at 10 35 45 AM

Adding logs from docker

java.util.NoSuchElementException: null
     at java.base/java.util.ArrayList$Itr.next(ArrayList.java:1000)
     at com.epam.reportportal.extension.jira.command.GetIssueFieldsCommand.invokeCommand(GetIssueFieldsCommand.java:88)
     at com.epam.reportportal.extension.jira.command.GetIssueFieldsCommand.invokeCommand(GetIssueFieldsCommand.java:43)
     at com.epam.reportportal.extension.AbstractRoleBasedCommand.executeCommand(AbstractRoleBasedCommand.java:19)
     at com.epam.ta.reportportal.core.integration.impl.ExecuteIntegrationHandlerImpl.lambda$executeCommand$7(ExecuteIntegrationHandlerImpl.java:96)
     at java.base/java.util.Optional.map(Optional.java:265)
     at com.epam.ta.reportportal.core.integration.impl.ExecuteIntegrationHandlerImpl.executeCommand(ExecuteIntegrationHandlerImpl.java:88)
     at jdk.internal.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
     at com.sun.proxy.$Proxy289.executeCommand(Unknown Source)
     at com.epam.ta.reportportal.ws.controller.IntegrationController.executeIntegrationCommand(IntegrationController.java:233)
     at com.epam.ta.reportportal.ws.controller.IntegrationController$$FastClassBySpringCGLIB$$255e9ef9.invoke(<generated>)
     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
     at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
     at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
     at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:61)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
     at com.epam.ta.reportportal.ws.controller.IntegrationController$$EnhancerBySpringCGLIB$$f5e281e6.executeIntegrationCommand(<generated>)
     at jdk.internal.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
     at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:699)
     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:779)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.web.multipart.support.MultipartFilter.doFilterInternal(MultipartFilter.java:125)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:121)
     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:182)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103)
     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336)
     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360)
     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)
     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789)
     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
     at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
     at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.base/java.lang.Thread.run(Thread.java:829)

@DzmitryHumianiuk DzmitryHumianiuk changed the title 'Post Issue' is not available. Post Issue is not available. Sep 11, 2023
@alena-babrova
Copy link

Dear @forelock7, @rutika89 and @ShivaPotlapelli,
Could you please specify what version of ReportPortal (api service), version of Jira Cloud plugin and version of Jira Cloud you use?

@ShivaPotlapelli
Copy link

ShivaPotlapelli commented Sep 11, 2023

hey @alena-babrova
version of Report Portal (api service):- 5.9.2
version of Jira Cloud plugin:-Version 5.7.3
version of JIRA Cloud :-As we are using a cloud instance of Jira and Cloud instances are always on latest versions and that version details are not shown on UI like we can able to see Jira version on Datacenter or Server instances.
You can check the below difference between Jira cloud and Datacenter instances
https://www.atlassian.com/migration/assess/compare-cloud-data-center

@alena-babrova
Copy link

@ShivaPotlapelli thank you for information!
We are going to discuss it with our engineers.
I will keep you informed.

@APiankouski
Copy link
Contributor

Hi @ShivaPotlapelli did you use customs fields in jira cloud?

@ShivaPotlapelli
Copy link

@APiankouski Yes there might be some custom fields

@APiankouski
Copy link
Contributor

APiankouski commented Oct 3, 2023

@ShivaPotlapelli I can't reproduce this issue,

With my best guestimate, I've made a little fix, which might probably fix the issue, but i'm not sure in this.
And also added some extra logging for the JIRA Cloud getIssueFields response.
Please try it from here:
plugin-bts-jira-cloud-5.7.4.zip
(this is a test version of plugin, it's not release). But it will give us logging info.

Could you please try to install this plugin instead, and share the API logs with us after connection attempt?

@DzmitryHumianiuk
Copy link
Member

@ShivaPotlapelli ^^^

@ShivaPotlapelli
Copy link

Thanks,@APiankouski @DzmitryHumianiuk will check out and see if issue still persist

@ShivaPotlapelli
Copy link

@APiankouski @DzmitryHumianiuk with the provided jar file it is showing the necessary fields so we can close this.
However the versions earlier has an issue so we need an official release for this fix

@APiankouski
Copy link
Contributor

@ShivaPotlapelli thanks you, I'm glad this helped solve the problem. Need aditional testing from our side before official release.

@ShivaPotlapelli
Copy link

Screenshot 2023-10-23 at 3 24 43 PM @APiankouski Now we are getting necessary fields related to the category but however Issue creation is not happening. please find the attached image for the details

@marina-simakina
Copy link

Hello @APiankouski, are there any news on this issue? I ve tried with the latest plugin version 5.11.0 (Report portal version 5.9.0) and posting an issues still fails with the following error for me:
{ "errorCode": 40302, "message": "Impossible interact with integration. [ErrorCollectionstatus=400, errors=priority=The priority selected is invalid., errorMessages=[]]" }

@alena-babrova
Copy link

Hello @marina-simakina,

Jira Cloud plugin version 5.11.0 is not compatible with ReportPortal version 5.9.0.
In your case, you should use Jira Cloud plugin version 5.7.3.
Please, try it and let me if it helps.

@marina-simakina
Copy link

Hey @alena-babrova thanks for the fast feedback! With plugin version 5.7.3 I still get exactly the same error, should I try 5.7.4. posted in this thread above maybe?

@alena-babrova
Copy link

Dear @marina-simakina,
You can try but honestly saying I'm not sure that it will help...
Could you please share a screenshot when you post an issue? I want to see what fields you use when posting.

@marina-simakina
Copy link

@alena-babrova,
image
This is how "Priority" looks in my Jira project, seems they match to me:
image

@alena-babrova
Copy link

Dear @marina-simakina,

Could you please uncheck "Priority" field in Configuration setting (where you create integration with Jira Cloud) and try to post an issue again? I want to figure out will you get the error or not.

@marina-simakina
Copy link

Hello @alena-babrova,
After deleting "Priority" field from Configuration, I managed to successfully post a new ticket to Jira. Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants