Questions tagged [atlassian-plugin-sdk]

the Atlassian plugin tag is for questions related to the Atlassian plugins SDK from the company Atlassian

the Atlassian plugin tag is for questions related to the Atlassian plugins SDK from the company Atlassian

222 questions
0
votes
1 answer

Make sure that logged in user making use of REST endpoint is part of jira-users

I am using some code for a REST endpoint and I want to make sure that the only users who are allowed to execute this REST endpoint are logged in and are also part of the jira-users group. I am using the following code below and more specifically the…
0
votes
0 answers

Confluence cloud app: How to prevent macro editor diagram from closing on ESC key press?

I am working on an Atlassian Confluence Cloud App - https://marketplace.atlassian.com/apps/1218380/zenuml-sequence-diagram?tab=overview&hosting=cloud&src=so Some of our clients complained that the editor is closed when they press ESC…
Devs love ZenUML
  • 11,344
  • 8
  • 53
  • 67
0
votes
0 answers

Comment not inserted in the linked issue

I am developing a plugin for jira in scriptrunner, it is a postfunction so something needs to happen when a button is clicked. I am trying to click on the "MounaFixReleased" menu item and then generate a comment for the issue links that are marked…
0
votes
0 answers

Script editor for Jira not throwing any compile time/syntax errors

ScriptRunner for Jira is not even throwing basic compile time errors! I was using a variable that was written wrong and I didn't even receive a warning for that and it took me so much time to figure it out! If anyone knows a trick, let me know! How…
0
votes
2 answers

Run some statistics about which projects are used versus which ones are not used

I would like to run some statistics about my Jira projects. For example, I would like to know if a project has almost no issues or if all issues have been created more than 1 year ago and the project is no longer used. I would like to know these…
0
votes
1 answer

A gadget to count how many fields are empty versus non empty for all projects of a category

I would like to produce a table letting me know about how many fields for my Jira issues have a value versus how many are empty for all projects belonging to a given category and any issue type. Here is an example of the table that I would like to…
0
votes
1 answer

How can I add a Jira dashboard to Confluence?

I want add a Jira dashboard to Confluence. I tried with an iframe gadget and set the width to 1500 and the height as 1700. But it displays as in this image:
0
votes
0 answers

Caused by: org.ofbiz.core.entity.GenericTransactionException: Commit failed, rollback previously requested by nested transaction

I am trying to execute a transition when clicking on a menu item in Jira Data Center. I have tried the following code. It is using the APIs workflowTransitionUtil.setAction, workflowTransitionUtil.validate and workflowTransitionUtil.progress and it…
0
votes
1 answer

Simple JIRA DataCenter REST endpoint not working

I am trying to perform a REST endpoint with its corresponding web fragment but I am getting the error: script function failed on issue: issue: SF-347, user: mouh, fieldId: __init__, file: , edit behaviour:…
0
votes
1 answer

get the transition name in Jira listener

I am using use a listener in Jira to execute some code if a specific transition was made. I need to retrieve the transition name to only fire the event if the transition is called "MounaTransition". It seems that the following code is not working to…
0
votes
1 answer

Status is not updated after performing transitionResult = issueService.transition(currentUser, transitionValidationResult)

I would like an issue to be automatically transitioned from the following statuses:  From Open to Fixed  From Fixed to Tested  From Tested to Completed The problem is that the status of my issue does not get updated even after executing the…
0
votes
1 answer

changeLog.internalDelegator [GenericEntity.get] "internalDelegator" is not a field of ChangeGroup

I am writing some scriptrunner listener code in Jira to be triggered when an issue of type impediment is updated and here is my code: import com.atlassian.event.Event import java.util.HashMap; import java.util.List; import…
0
votes
1 answer

Not able to throw exceptions in scriptrunner

I am using the following postfunction to throw errors when the user enters incorrect input and I am not able to see any errors thrown when I try out my code on the UI of Jira. Here is my code, why are the exceptions not thrown even though my input…
0
votes
1 answer

How to retrieve the value of the summary system field using the postfunction of a workflow transition in scriptrunner

I am trying to retrieve the value of the Summary system field in Jira using ScriptRunner. I am using the following code in scriptrunner but the problem is that the variable cf returned by the line def cf =…
0
votes
1 answer

How to set default value in Select dropdown in velocity template file?

I am trying to build a custom build Jira Plugin, on the UI of plugin I am displaying select dropdown which consist of list of Issue Types. I need to make option value "ALL" as default one for that select dropdown. I have written following code for…