# \#java-api

**URL:** https://community.developer.atlassian.com/tag/java-api/1130.md

[Latest](https://community.developer.atlassian.com/latest.md) · [Categories](https://community.developer.atlassian.com/categories.md) · [Tags](https://community.developer.atlassian.com/tags.md)

---

## [How to get all users using Java API in Jira 10](https://community.developer.atlassian.com/t/how-to-get-all-users-using-java-api-in-jira-10/91162)

<div class="topic-metadata">

**Author:** [@martin.bayer](https://community.developer.atlassian.com/u/martin.bayer)\
**Replies:** 4\
**Last updated:** [August 12, 2026, 12:18pm UTC](https://community.developer.atlassian.com/t/how-to-get-all-users-using-java-api-in-jira-10/91162 "2026-08-12T12:18:20Z")

</div>

Hi, does anyone found a way how to get all the users created under Jira instance using Java API? I want to use not deprecated methods but I don’t think it is possible. Following method is deprecated since Jira 7.x: Use…

---

## [What is the future of deprecated methods of PageManager, SpaceManager etc.?](https://community.developer.atlassian.com/t/what-is-the-future-of-deprecated-methods-of-pagemanager-spacemanager-etc/87490)

<div class="topic-metadata">

**Author:** [@cheinig](https://community.developer.atlassian.com/u/cheinig)\
**Replies:** 12\
**Last updated:** [February 5, 2026, 8:17am UTC](https://community.developer.atlassian.com/t/what-is-the-future-of-deprecated-methods-of-pagemanager-spacemanager-etc/87490 "2026-02-05T08:17:34Z")

</div>

While working on Confluence 9 compatibility, we noticed (again) that many methods like PageManager.getPage(long contentId) or SpaceManager.getSpace(String spaceKey) are deprecated (and have been for quite some time). In…

---

## [Create a comment with custom properties via Java API](https://community.developer.atlassian.com/t/create-a-comment-with-custom-properties-via-java-api/58451)

<div class="topic-metadata">

**Author:** [@tova.pozen](https://community.developer.atlassian.com/u/tova.pozen)\
**Replies:** 2\
**Last updated:** [June 25, 2025, 8:32am UTC](https://community.developer.atlassian.com/t/create-a-comment-with-custom-properties-via-java-api/58451 "2025-06-25T08:32:10Z")

</div>

I want to create a comment with custom properties via the Confluence Java API (in a Rest endpoint I am exposing by a Confluence plugin). My code is as following: Content commentedPage = contentService.find(new …

---

## [ScriptRunner JQL works in UI but not via Jira Java SearchService API for closed sprints](https://community.developer.atlassian.com/t/scriptrunner-jql-works-in-ui-but-not-via-jira-java-searchservice-api-for-closed-sprints/92830)

<div class="topic-metadata">

**Author:** [@karan1](https://community.developer.atlassian.com/u/karan1)\
**Replies:** 4\
**Last updated:** [June 24, 2025, 11:45am UTC](https://community.developer.atlassian.com/t/scriptrunner-jql-works-in-ui-but-not-via-jira-java-searchservice-api-for-closed-sprints/92830 "2025-06-24T11:45:38Z")

</div>

The JQL issueFunction in completeInSprint(1,2) works correctly in the Jira UI and ScriptRunner console. When used via searchService.search(...) or searchOverrideSecurity(...) in Java (with an admin user), it returns resu…

---

## [SpacePermissionDao: Could not instantiate class SpacePermissionDTOLight](https://community.developer.atlassian.com/t/spacepermissiondao-could-not-instantiate-class-spacepermissiondtolight/91410)

<div class="topic-metadata">

**Author:** [@mikhail.gorev](https://community.developer.atlassian.com/u/mikhail.gorev)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 5:18pm UTC](https://community.developer.atlassian.com/t/spacepermissiondao-could-not-instantiate-class-spacepermissiondtolight/91410 "2025-04-23T17:18:11Z")

</div>

Hi friends! My case: I need to get all spaces admins Old method (SpaceManager) not good for me: Deprecated SpaceManager methods Too much time to get all spaces admins in big instance (cause of realization) So, as a…

---

## [Change User profile Site homepage](https://community.developer.atlassian.com/t/change-user-profile-site-homepage/88071)

<div class="topic-metadata">

**Author:** [@Rocket100](https://community.developer.atlassian.com/u/Rocket100)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 1:22pm UTC](https://community.developer.atlassian.com/t/change-user-profile-site-homepage/88071 "2025-01-22T13:22:05Z")

</div>

Hi, Is there any java api function to set/change a specific confluence user profile homepage based on the username ? I have searched a lot in the documentation but with no success. Best regards, Amine

---

## [List of users who have "Jira Service Management" application access](https://community.developer.atlassian.com/t/list-of-users-who-have-jira-service-management-application-access/86881)

<div class="topic-metadata">

**Author:** [@MohamedEltaweel](https://community.developer.atlassian.com/u/MohamedEltaweel)\
**Replies:** 1\
**Last updated:** [December 5, 2024, 10:27am UTC](https://community.developer.atlassian.com/t/list-of-users-who-have-jira-service-management-application-access/86881 "2024-12-05T10:27:25Z")

</div>

Hi, How can I retrieve the list of users who have “Jira Service Management” application access using the Jira packages? Thanks

---

## [Creating jira workflow using java APIs](https://community.developer.atlassian.com/t/creating-jira-workflow-using-java-apis/86608)

<div class="topic-metadata">

**Author:** [@VVK](https://community.developer.atlassian.com/u/VVK)\
**Replies:** 0\
**Last updated:** [November 26, 2024, 8:17am UTC](https://community.developer.atlassian.com/t/creating-jira-workflow-using-java-apis/86608 "2024-11-26T08:17:26Z")

</div>

Hello, I’m trying to create jira workflows using Java APIs, and followed the following article - Create Workflow through Java API - Jira Development / Jira Server - The Atlassian Developer Community I implemented it wi…

---

## [Jira Workflow on Java API](https://community.developer.atlassian.com/t/jira-workflow-on-java-api/86500)

<div class="topic-metadata">

**Author:** [@PedroCampos](https://community.developer.atlassian.com/u/PedroCampos)\
**Replies:** 0\
**Last updated:** [November 22, 2024, 3:15pm UTC](https://community.developer.atlassian.com/t/jira-workflow-on-java-api/86500 "2024-11-22T15:15:37Z")

</div>

Hi guys, I’m trying to build a plugin and one step of the plugin is to build workflows. I’ve been searching and trying to understand why, but couldn’t find a solution. I’m currently using Jira 9.4.21, but in this case, …

---

## [Can we access masked secret keys via the Jira DC Java or REST APIs for use in Scriptrunner?](https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498)

<div class="topic-metadata">

**Author:** [@BryanGuffey2](https://community.developer.atlassian.com/u/BryanGuffey2)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 8:20am UTC](https://community.developer.atlassian.com/t/can-we-access-masked-secret-keys-via-the-jira-dc-java-or-rest-apis-for-use-in-scriptrunner/77498 "2024-11-22T08:20:29Z")

</div>

Hi - is there a way to access masked secret keys (added in Jira Automation 9.0) via the REST or Java APIs? We moved to Confluence Cloud, which broke OAuth with impersonation, so I’m in the process of transitioning some S…

---

## [Issue archived event listener](https://community.developer.atlassian.com/t/issue-archived-event-listener/86039)

<div class="topic-metadata">

**Author:** [@ron.elazar](https://community.developer.atlassian.com/u/ron.elazar)\
**Replies:** 3\
**Last updated:** [November 10, 2024, 12:03pm UTC](https://community.developer.atlassian.com/t/issue-archived-event-listener/86039 "2024-11-10T12:03:53Z")

</div>

is there such event triggered in jira ? i couldn’t find any documentation / examples or questions about it. i couldn’t even see it in the audit log. I would really like to be able to listen and respond to this event. …

---

## [Concurrent PR modification using PullRequestService#update](https://community.developer.atlassian.com/t/concurrent-pr-modification-using-pullrequestservice-update/78478)

<div class="topic-metadata">

**Author:** [@BIF01](https://community.developer.atlassian.com/u/BIF01)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 1:09pm UTC](https://community.developer.atlassian.com/t/concurrent-pr-modification-using-pullrequestservice-update/78478 "2024-10-09T13:09:51Z")

</div>

Using PullRequestService#update on different listeners for the same PR, we got concurrent PR modification, for example updating PR reviewers. Listerner #1 added reviewers to PR: Listener #2 added other reviewers to P…

---

## [How to create and modify issue entity properties (server / data center)](https://community.developer.atlassian.com/t/how-to-create-and-modify-issue-entity-properties-server-data-center/81821)

<div class="topic-metadata">

**Author:** [@HristoBurgazliev](https://community.developer.atlassian.com/u/HristoBurgazliev)\
**Replies:** 0\
**Last updated:** [July 15, 2024, 12:35pm UTC](https://community.developer.atlassian.com/t/how-to-create-and-modify-issue-entity-properties-server-data-center/81821 "2024-07-15T12:35:12Z")

</div>

I am working on an activity tracker server plugin and I am using Jira webhooks to get the data that I need and then parse it in a format which suits my needs. I want to be able to save the formatted data in issue entity …

---

## [\[JAVA-API\] Add/remove only changed attachment for issue in Jira](https://community.developer.atlassian.com/t/java-api-add-remove-only-changed-attachment-for-issue-in-jira/80596)

<div class="topic-metadata">

**Author:** [@IbrahimItani](https://community.developer.atlassian.com/u/IbrahimItani)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 2:38pm UTC](https://community.developer.atlassian.com/t/java-api-add-remove-only-changed-attachment-for-issue-in-jira/80596 "2024-06-05T14:38:27Z")

</div>

Hello Currently I update everyday attachments for list of issues in Jira using java api. The way I’m doing it is that I delete all attachments for each issue then re add them using attachmentManager. Is there a way wh…

---

## [Upgrade jira plugins from Java 8 to 11](https://community.developer.atlassian.com/t/upgrade-jira-plugins-from-java-8-to-11/80067)

<div class="topic-metadata">

**Author:** [@IbrahimItani](https://community.developer.atlassian.com/u/IbrahimItani)\
**Replies:** 4\
**Last updated:** [May 22, 2024, 7:06am UTC](https://community.developer.atlassian.com/t/upgrade-jira-plugins-from-java-8-to-11/80067 "2024-05-22T07:06:56Z")

</div>

Hello I’m upgrading jira custom plugin from java 8 to java 11 I did changes mentioned in Bitbucket My plugin is being built successfully, however when I upload plugin it is being automatically disabled with the follow…

---

## [Confusing results from Bitbucket when file changeType is COPY](https://community.developer.atlassian.com/t/confusing-results-from-bitbucket-when-file-changetype-is-copy/79101)

<div class="topic-metadata">

**Author:** [@JosephMarcel](https://community.developer.atlassian.com/u/JosephMarcel)\
**Replies:** 1\
**Last updated:** [April 15, 2024, 1:14pm UTC](https://community.developer.atlassian.com/t/confusing-results-from-bitbucket-when-file-changetype-is-copy/79101 "2024-04-15T13:14:37Z")

</div>

https://docs.atlassian.com/bitbucket-server/javadoc/7.21.7/api/com/atlassian/bitbucket/content/ChangeType.html Documentation says “An existing file was copied to create a new file.” But we have yet to see a COPY when a…

---

## [How to check if a user can view a page via REST or Java API without storing user's credentials?](https://community.developer.atlassian.com/t/how-to-check-if-a-user-can-view-a-page-via-rest-or-java-api-without-storing-users-credentials/78430)

<div class="topic-metadata">

**Author:** [@kirchen99](https://community.developer.atlassian.com/u/kirchen99)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 12:46pm UTC](https://community.developer.atlassian.com/t/how-to-check-if-a-user-can-view-a-page-via-rest-or-java-api-without-storing-users-credentials/78430 "2024-03-20T12:46:21Z")

</div>

Hi everyone, I am working on implementing a vector search service for my Confluence data center and I want to make sure it only returns results that the user is actually allowed to see, without requiring the user’s cred…

---

## [Add entry to Audit Log in Jira via Java API](https://community.developer.atlassian.com/t/add-entry-to-audit-log-in-jira-via-java-api/29222)

<div class="topic-metadata">

**Author:** [@Holger](https://community.developer.atlassian.com/u/Holger)\
**Replies:** 5\
**Last updated:** [March 11, 2024, 7:07pm UTC](https://community.developer.atlassian.com/t/add-entry-to-audit-log-in-jira-via-java-api/29222 "2024-03-11T19:07:38Z")

</div>

I would like to add information to the Audit Log in Jira via Java API from Java code in a Jira plugin I am developing. I found the package com.atlassian.jira.auditing in the Jira API, but I don’t understand how it is wo…

---

## [Move from AttachmentManager / PageManager to AttachmentService / ContentService](https://community.developer.atlassian.com/t/move-from-attachmentmanager-pagemanager-to-attachmentservice-contentservice/67790)

<div class="topic-metadata">

**Author:** [@GustavS](https://community.developer.atlassian.com/u/GustavS)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 7:43am UTC](https://community.developer.atlassian.com/t/move-from-attachmentmanager-pagemanager-to-attachmentservice-contentservice/67790 "2024-03-05T07:43:21Z")

</div>

Hi. There is an apparent move from AttachmentManager / PageManager (which are becoming internal) to AttachmentService / ContentService. Unfortunately there’s still a lack of any documentation on the matter (that I’m awa…

---

## [Getting attachment version from AttachmentService instead of AttachmentManager, how?](https://community.developer.atlassian.com/t/getting-attachment-version-from-attachmentservice-instead-of-attachmentmanager-how/56780)

<div class="topic-metadata">

**Author:** [@PetriJuhaniRiipinen](https://community.developer.atlassian.com/u/PetriJuhaniRiipinen)\
**Replies:** 4\
**Last updated:** [February 16, 2024, 1:31am UTC](https://community.developer.atlassian.com/t/getting-attachment-version-from-attachmentservice-instead-of-attachmentmanager-how/56780 "2024-02-16T01:31:55Z")

</div>

Hi, I’m trying to replace the deprecated AttachmentManager.getAttachment(…)-calls with the recommended AttachmentService.find(…)-calls, but having some trouble understanding how to do it and haven’t really found any hel…

---

## [Getting boards for a project not working in jira](https://community.developer.atlassian.com/t/getting-boards-for-a-project-not-working-in-jira/64900)

<div class="topic-metadata">

**Author:** [@IbrahimItani](https://community.developer.atlassian.com/u/IbrahimItani)\
**Replies:** 1\
**Last updated:** [February 12, 2024, 4:20pm UTC](https://community.developer.atlassian.com/t/getting-boards-for-a-project-not-working-in-jira/64900 "2024-02-12T16:20:21Z")

</div>

Hello I want to get all boards for a certain project in jira using java api I’m using this method ServiceOutcome\<List\> boardsForProject=boardService.getBoardsForProject(ApplicationUser var1, long projectId);, and getti…

---

## [How do I use auditSearchService to search for when a user has been added in a specific group](https://community.developer.atlassian.com/t/how-do-i-use-auditsearchservice-to-search-for-when-a-user-has-been-added-in-a-specific-group/76855)

<div class="topic-metadata">

**Author:** [@Michael1](https://community.developer.atlassian.com/u/Michael1)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 2:51pm UTC](https://community.developer.atlassian.com/t/how-do-i-use-auditsearchservice-to-search-for-when-a-user-has-been-added-in-a-specific-group/76855 "2024-02-06T14:51:22Z")

</div>

Hi, I have been looking into the Java API and I have been reading the auditSearchService and I have been struggling how to use it, to return when a specific user has been added to a specific group. Can anyone help with…

---

## [Export assets automatically](https://community.developer.atlassian.com/t/export-assets-automatically/75921)

<div class="topic-metadata">

**Author:** [@ZacBoyd](https://community.developer.atlassian.com/u/ZacBoyd)\
**Replies:** 0\
**Last updated:** [January 3, 2024, 4:58am UTC](https://community.developer.atlassian.com/t/export-assets-automatically/75921 "2024-01-03T04:58:42Z")

</div>

Wanting to know if anyone has got a way to export assets automatically. Probably not quite the right forum, but have been struggling with this, i am using Data center LTS 9.4.11 and have scriptrunner. Idea was to get t…

---

## [VelocityUtils.getRenderedTemplate() returns empty String after update to Confluence 7.19.17](https://community.developer.atlassian.com/t/velocityutils-getrenderedtemplate-returns-empty-string-after-update-to-confluence-7-19-17/75342)

<div class="topic-metadata">

**Author:** [@RainerEmil](https://community.developer.atlassian.com/u/RainerEmil)\
**Replies:** 3\
**Last updated:** [December 12, 2023, 3:57pm UTC](https://community.developer.atlassian.com/t/velocityutils-getrenderedtemplate-returns-empty-string-after-update-to-confluence-7-19-17/75342 "2023-12-12T15:57:20Z")

</div>

Hello, after updating Confluence from 7.19.16 to 7.19.17 VelocityUtils.getRenderedTemplate() returns empty String . This means my macros are just an empty string. The example below shows a quick fix: @Scanned public …

---

## [How to get SpacePermissions using Java Confluence API (\> 7.3.0)?](https://community.developer.atlassian.com/t/how-to-get-spacepermissions-using-java-confluence-api-7-3-0/58283)

<div class="topic-metadata">

**Author:** [@KrishnaGottapu](https://community.developer.atlassian.com/u/KrishnaGottapu)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 7:02am UTC](https://community.developer.atlassian.com/t/how-to-get-spacepermissions-using-java-confluence-api-7-3-0/58283 "2023-12-06T07:02:41Z")

</div>

Earlier we used to get Space Permissions using below code com.atlassian.confluence.spaces.Space space = spaceManager.getSpace(spaceKey); List spList = space.getPermissions(); But now we are upgrading to Confluence 7.1…

---

## [DefaultWysiwygConverter class, convertXHtmlToWikiMarkup method image link in HTML doesn't show up in Wiki Output](https://community.developer.atlassian.com/t/defaultwysiwygconverter-class-convertxhtmltowikimarkup-method-image-link-in-html-doesnt-show-up-in-wiki-output/75041)

<div class="topic-metadata">

**Author:** [@RShanmukhappa](https://community.developer.atlassian.com/u/RShanmukhappa)\
**Replies:** 0\
**Last updated:** [November 28, 2023, 6:34pm UTC](https://community.developer.atlassian.com/t/defaultwysiwygconverter-class-convertxhtmltowikimarkup-method-image-link-in-html-doesnt-show-up-in-wiki-output/75041 "2023-11-28T18:34:33Z")

</div>

We have a custom Integration that creates Jira issue from Salesforce Custom Object. For one RichText Field, to convert HTML to WikiMarkup, images do not come across in Wiki Output. I’m using DefaultWysiwygConverter clas…

---

## [Jira-rest-java-client-core backwards compatibility](https://community.developer.atlassian.com/t/jira-rest-java-client-core-backwards-compatibility/74833)

<div class="topic-metadata">

**Author:** [@DavidMeredith](https://community.developer.atlassian.com/u/DavidMeredith)\
**Replies:** 0\
**Last updated:** [November 20, 2023, 2:38pm UTC](https://community.developer.atlassian.com/t/jira-rest-java-client-core-backwards-compatibility/74833 "2023-11-20T14:38:19Z")

</div>

Hi people, Support have asked me to post here as jira-rest-java-client-core is no longer supported by Atlassian. I’m supporting a client that is currently using jira-rest-java-client-core-5.1.0 to support Jira integrat…

---

## [Missing Author of changes for a sprint object when I listening SprintEvent](https://community.developer.atlassian.com/t/missing-author-of-changes-for-a-sprint-object-when-i-listening-sprintevent/74104)

<div class="topic-metadata">

**Author:** [@SeriousDen](https://community.developer.atlassian.com/u/SeriousDen)\
**Replies:** 2\
**Last updated:** [November 1, 2023, 5:10pm UTC](https://community.developer.atlassian.com/t/missing-author-of-changes-for-a-sprint-object-when-i-listening-sprintevent/74104 "2023-11-01T17:10:32Z")

</div>

Hi there! I’m wondering if I have any way to know who is author of changes which I handle as any of SprintCreatedEvent, SprintStartedEvent and others SprintEvent (provided by GreenHopper API). Thanks in advance for any…

---

## [Missing event for a sprint when it changes its the state property from Closed to Active (sprint reopening)](https://community.developer.atlassian.com/t/missing-event-for-a-sprint-when-it-changes-its-the-state-property-from-closed-to-active-sprint-reopening/74102)

<div class="topic-metadata">

**Author:** [@SeriousDen](https://community.developer.atlassian.com/u/SeriousDen)\
**Replies:** 0\
**Last updated:** [October 25, 2023, 4:21am UTC](https://community.developer.atlassian.com/t/missing-event-for-a-sprint-when-it-changes-its-the-state-property-from-closed-to-active-sprint-reopening/74102 "2023-10-25T04:21:00Z")

</div>

Hi there! I’m wondering if I have a way to catch a user’s action when s/he is re-opening a sprint in order to process it in my plugin? I’ve checked GreenHopper API through its first stable release (8.5.5) to its curren…

---

## [Java and/or REST APIs to search code?](https://community.developer.atlassian.com/t/java-and-or-rest-apis-to-search-code/53860)

<div class="topic-metadata">

**Author:** [@BIF01](https://community.developer.atlassian.com/u/BIF01)\
**Replies:** 3\
**Last updated:** [September 13, 2023, 10:45am UTC](https://community.developer.atlassian.com/t/java-and-or-rest-apis-to-search-code/53860 "2023-09-13T10:45:56Z")

</div>

Anyone is aware of Java and/or REST APIs to search code in Bitbucket Server? We saw the announcement for Bitbucket Cloud but not for Bitbucket Server… or we missed it? We find the artifact bitbucket-seach which seems t…

[Next page](https://community.developer.atlassian.com/tag/java-api/1130.md?match_all_tags=true&page=1&tags%5B%5D=java-api)
