When creating an Issue I would like to have a checkbox additional to the Summary, Reporter etc. When the checkbox is checked I want to run a java application.
Since I'm a beginner in JIRA development it's difficult for me to find the right approach for my problem. I already went through the "Set up the Atlassian Plugin SDK.." Tutorial. Where should I go now from this point?
There's two parts to this.
First, a checkbox is easy - go to admin -> custom fields, and add a "multi check box". Give it a single option. Then go to admin -> Screens and find the "issue create" screen you want to add this to. Add the new custom field.
The second part is handled by the route you've started down - you need a post-function added to your create transition - it should check the value of the custom field and run your stuff if it's checked. See https://developer.atlassian.com/jiradev/jira-platform/building-jira-add-ons/jira-plugins2-overview/jira-plugin-module-types/workflow-plugin-modules for building an add-on to provide that function
First thank you for your answer. I created the checkbox in the create issue dialog and the add-on with the post function module. If I understand correctly, I add the input (in my case I have no input) for my postfunction to the PostFunctionFactory class and the java code which i want to run will be added to the PostFuncion class. How can I check now the checkbox in the PostFunction class? Is it possible to prompt a Function which runs outside of the local jira or does is work similar to a sandbox? (As example: can I write something into a txt file which is local on my computer through the post function add on?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could get a post-function to run external code (scripts or programs) on the JIRA server if you wanted to - java has a simple "exec" call to run other stuff. To look at the checkbox, it's the same as any custom field usage in a post function - you can read it from the issue - the links to the developer documentation given by Volodymyr and myself give you some examples of reading fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For me the best bet looks like to create post-function addon and configure it to run on issue create.
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.