I am looking to capture values from the 'affected version' field of New Bug screen along with the project name and dynamically add these values to the table in my new screen, which was created using a velocity template. I have recently checkout an uploaded the plugin WebWork tutorial plugin but I am having difficulty working out how to utilise this as I very new to JIRA.
As always grateful for any help.
The base class for all custom fields in JIRA is
http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/customfields/CustomFieldType.html
and it has a method getVelocityParameters that can be used to add variables to the context used in velocity templates, e.g. $mynewvariable. I'd suggest poking around the source looking at some of the CFType.java files for examples of how this can work.
~Matt
Related
I'm developing a Redmine plugin, and I want to add a custom field programmatically when I'm activating my plugin, but i don't find the plugin activation method in the core Redmine, which I want to wrap.
Can anyone help me?
Well, I am not really sure what you are looking for as a Redmine plugin is something that you don't really activate as Redmine user at runtime.
Your plugin is 'active' and will be loaded on Redmine start when it resides in the plugins folder.
The first executed code is in the init.rb of your plugin.
Also you should clarify what you mean by "add a custom field":
create a new custom field
add a custom field to a tracker and/or project
create a new custom field type
Maybe you should elaborate more in detail on what you are trying to achieve.
Just came to my mind:
If by 'plugin' you mean 'project module' (which is in fact something you can (de-)activate) then you probably should patch the project class and add an after_save hook where you check if your project module is active and program your actions accordingly...
I'm develping custom Jenkins plugin.
As part of the development I had to make some changes to the classes and fields of my custom build step.
As a result, each client that updates the plugin has to re-enter the configuration of some of the fields.
I wonder if there is a way to load the old values and map them to the new fields?
Any help will be appreciated.
Cheers,
Nadv
See Hint on retaining backward compatibility in the Jenkins wiki. It covers all relevant cases, e.g. adding/removing/renaming fields.
My question was too long so I've shortened it:
Is it possible to create or edit a Jenkins Project on the fly with a template/environment variables/coding/etc, and would this be possible via a trigger from Gitlab/hub/etc.? If someone could point me in the right direction that would be great! Thanks!
Yes.
Your options are to use the rest API (and there's more detailed information in your own Jenkins, check the link in the bottom right corner of every page), or to create the job directory structure and XML files manually and have Jenkins re-scan its workspace directories.
I strongly recommend the rest API. It's designed for this sort of thing.
We are currently attempting to setup an instance of Jenkins as our build system for our code base. We have multiple jobs setup (all using the same depot) to build different sections of the code.
We would now like to show the submits from all users pertaining to this depot on the main Jenkins screen rather than being able to view the change lists involved with a certain build (e.g. by selecting a certain job and then the link leading to the build information, etc...). I've looked into possible plugins and the closest one I was able to find was the "All Changes Plugin". This is exactly what we would like, but this is only visible when viewing the details of a build (e.g. which CLs were used to create the build), but would it be possible to show this type of information on the main Jenkins page instead?
Thank you in advance for your help.
You could write an extension for the Dashboard View plugin to provide a portlet containing an aggregated list of changes from perforce, though if you aren't experienced with writing plugins then you might be better off using a separate repository browser such as Fisheye or P4Web to display your changes.
I'm new to Jira and have big problem with creating tables inside my testing plan. Using pipes, double pipes, etc. to build the table markup is really time consuming.
So, I saw here, that actually there's a RTF editor with visual table building in Confluence (which should be used in JIRA right? ) : http://confluence.atlassian.com/display/DOC/Working+with+Tables+in+the+Rich+Text+Editor
However the textareas in my Jira installation are just plain text fields and can't figure out how to turn them into the the nice RTF areas shown in the URL above...
You have to go to Admin, Field Configurations and tell JIRA to use the Wiki Renderer for fields such as Description and Environment.