Renaming JIRA Issues - jira

Is it possible to rename an issue for a given project in JIRA?
For example, if I have a project named equities and I create an issue from the JIRA GUI, the new issue is named something like equities-1.
Could I rename the issue to something like equities_1.0.0?
I am trying to create a release management workflow in JIRA and need to enforce strict naming conventions. Hence, why I need to change the name.

Sorry but you can't.
What you are calling a "name" is indeed a key automatically generated by JIRA :
[PROJECT_KEY]-[SEQUENCE_NUMBER].
You can never change it.
For your release management workflow, I think you should try another field :
"summary" field,
or why not a brand new custom field,
or use the "fix_version" field
I hope it helps

Related

How to prevent duplication of JIRA Tickets in python

I have 2 instances of JIRA . I have written a script where tickets from one instance are read and a replicas of same are created in another instance.
Now the problem is , whenever I run the script it is generating duplicate tickets again and again.
How do I prevent this duplication of tickets? Please help.
Ideas:
Create a link field in each Jira issue and populate it. If the field is populated the script should not create a new issue
Use a "last synced" field in the source Jira and only create a new issue if the source issue has not been synced
You don't say but I assumed that this is a one way sync

Redmine plugin activation

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...

Grails: How do I make changes to a plugins domain class if the change affects the schema of the domain's table?

I have a plugin used by different projects and I found out that I need to make a change in one domain class. How do I make sure that the schema is properly updated in the projects that depend on my plugin?
Update:
I'm changing maxSize constraint of one String field from 255 to 8000.
How do I make sure that the schema is properly updated in the projects
that depend on my plugin?
You really can't, at least not in a way that is generally applicable. In general a plugin should not assume that the application is generating or modifying schema. You should document the change as part of your plugin's upgrade notes.

Auto assign to team lead/developer on bug reopen

In my implementation of JIRA, I have a custom field called Developer which gets populated automatically (username) whenever someone move the JIRA from Open to Fixed state. Now I want something similar for the Fixed to Reopen transition. That is, whenever the tester changes the status to Reopen, it should go back to the Developer or the Project Lead (in case the field isnt populated as the custom field can be overridden).
I tried to implement a post function, but there isn't a way where I can use OR criteria. Or is there a way?
You can do a Post Function on the transition using the Script Runner plugin if its a self-hosted JIRA instance which will allow you great flexibility in the logic to fill the target field in.
I finally managed to find a workaround for this.
Download the Workflow Enhancer for JIRA plugin (FREE). You would also need JIRA Suite Utilities (I had it installed already for some other customization)
In the Fixed to Reopen transition, add a Post Function and use Copy Value From Other Field to update Assignee from Developer field
Then add another Post Function underneath this where you need to use Universal Post Function. Here make the boolean condition as {Assignee}=="" and select Choose post function to execute: as Assign to Lead Developer
Publish the draft.

How do I add variables to a velcoity template JIRA page?

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

Resources