I've got custom field type (numeric) field.
Value of this field is id of one of active objects, linked to specific project.
So when i'm moving issue to another project, i wish to update custom field value according to new project.
How this can be done?
Two options spring to mind - hacking the "move" functionality in the core of JIRA, and not actually doing it in the move at all.
The second option means writing a listener that could catch the "move" event, have a look at the issue and change the number as appropriate (technically, this would happen after the move, not as part of it, but it will usually be fast enough that the users will see it as the same action)
It's in the field context stuff. Custom fields -> find your field -> configure
You should find a screen that says "this field belongs to some projects and has the following options", along with the ability to edit the options.
Towards the top of that, you'll find an "add context" button, use that and choose which project(s) or issue type(s) to apply it to. Then define the new list.
Note - this may be destructive, I can't remember how it works!
Thing is, that value of my custom field is actually ID of active object, which is created/updated/deleted through custom editor in project administration interface..
I've examined JIRA MoveIssueUpdateFields class and found that there's hasValue() method of OrderableField object, which determines if the field has a value for the given issue. Fix version uses that.
Bad news is that custom fields created through "customfield-type" plugin module doesn't inherit OrderableField.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs