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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

shared team & people access via scriptrunner

Hello Team...
i am trying to pull shared teams& people details via scriptrunner.

when importing packages in here - https://docs.atlassian.com/portfolio-for-jira-server/javadoc/2.13.0/ it will give error as below

The script could not be compiled: <pre>org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script264.groovy: 6: unable to resolve class com.atlassian.rm.common.core.partial @ line 6, column 1. import com.atlassian.rm.common.core.partial ^ Script264.groovy: 7: unable to resolve class com.atlassian.rm.common.publicapi.exception @ line 7, column 1. import com.atlassian.rm.common.publicapi.exception ^ Script264.groovy: 8: unable to resolve class com.atlassian.rm.common.publicapi.interfaces.base.api @ line 8, column 1. import com.atlassian.rm.common.publicapi.interfaces.base.api ^ Script264.groovy: 9: unable to resolve class com.atlassian.rm.common.publicapi.interfaces.rest.entities @ line 9, column 1. import com.atlassian.rm.common.publicapi.interfaces.rest.entities ^ Script264.groovy: 10: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.hierarchy @ line 10, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.hierarchy ^ Script264.groovy: 11: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.nonworkingday @ line 11, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.nonworkingday ^ Script264.groovy: 12: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.plan @ line 12, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.plan ^ Script264.groovy: 13: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.planaware @ line 13, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.planaware ^ Script264.groovy: 14: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.program @ line 14, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.program ^ Script264.groovy: 15: unable to resolve class com.atlassian.rm.portfolio.publicapi.interfaces.stage @ line 15, column 1. import com.atlassian.rm.portfolio.publicapi.interfaces.stage ^ Script264.groovy: 16: unable to resolve class com.atlassian.rm.teams.publicapi.interfaces.ability @ line 16, column 1. import com.atlassian.rm.teams.publicapi.interfaces.ability ^ Script264.groovy: 17: unable to resolve class com.atlassian.rm.teams.publicapi.interfaces.person @ line 17, column 1. import com.atlassian.rm.teams.publicapi.interfaces.person ^ Script264.groovy: 18: unable to resolve class com.atlassian.rm.teams.publicapi.interfaces.resource @ line 18, column 1. import com.atlassian.rm.teams.publicapi.interfaces.resource ^ Script264.groovy: 19: unable to resolve class com.atlassian.rm.teams.publicapi.interfaces.skill @ line 19, column 1. import com.atlassian.rm.teams.publicapi.interfaces.skill ^ Script264.groovy: 20: unable to resolve class com.atlassian.rm.teams.publicapi.interfaces.team @ line 20, column 1. import com.atlassian.rm.teams.publicapi.interfaces.team ^ 15 errors </pre>.


What is the correct pacjage to pul data related to sharedteam & people frommscriptrunner & its syntax for the same

1 answer

1 accepted

0 votes
Answer accepted
Daniel Ebers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 16, 2023 • edited

Hi @Shishira

welcome to Atlassian Community!

It is safe to say that Advanced Roadmaps and ScriptRunner are compatible?
I am asking because I found a Suggestion open with Atlassian that it is not:

From my point of view you should double check with Atlassian and/or Adaptavist what the current status of JPOSERVER-1465 is.

 

Looking around at least here is another thread discussing using Advanced Roadmaps together with ScriptRunner, probably this helps to import the right classes:

https://community.atlassian.com/t5/Jira-questions/Copy-value-portfolio-field-quot-Team-quot-in-custom-field/qaq-p/926689

Cheers,
Daniel

Nic Brough -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.
Jan 16, 2023

On server, it is a lot more compatible than Cloud - Scriptrunner can get deep into the Java API, and can reach into the Advanced Roadmaps code.

But Cloud has to do it over much more limited APIs, ones which we'd like to be extended in Server as well,

Thank you Daniel & Nic.

 

I was able to get shared team & people data using below package

import com.atlassian.rm.teams.api.team.GeneralTeamService
@WithPlugin("com.atlassian.teams")
@PluginModule GeneralTeamService teamService
def team = teamService.allSharedTeams
which helped me to resolve my requirement

Is there a way to access these Shared teams in JQL by giving condition for Assignee field?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events