I have a drop down custom field "ProjectGroup" and I have created a separate context for projects with some default value.
For Example: Context 1
Default Value = A
Projects : Project 1, Project2 , Project 3.
Default Value = B
Projects: Project4, Project5 , Project6
Now If I move Project1 from Context1 to Context2 , I want custom field value of all existing issues of project 1 should get updated to B.
Is there any way to achieve this?
Default value based on context does not "stick" - once an issue has a value set, it's set and it no longer has any connection to the context. Default value setting is only valid for when a new issue is created and ends there.
You would therefore need to update those issues separately.
I see some suggestions on how to update the values.
If it's a single-select field, you can make do by filtering the issues out in an issue navigator and performing a bulk update on them.
If it's a multi-select, bulk update is not good - it would erase the other values if there're more than 1. In this case, without add-ons, I find it better to download the issues as .csv, modify the needed value, and upload it back via .csv import afterward. That way you only update a single object retaining the others.
Anyhow, if you're not sure about the outcome, I whole-heartily suggest to test the whole context change somewhere safe first. You can actually erase the values if you don't plan ahead.
It would be nice to know if you are on Cloud or Server.
But basically If you want an out of the box solution, you could develop a plugin to do the task or use Jira Rest API (You would need to iterate over all issues which must be changed and then update the issues one by one). Or you could use an add-on which will let you write such tasks easier. There are a few like this in the marketplace. For example, Power Scripts. You can find more information here about Power Scripts.
If you need any further help, kindly ask.
That is right. You can try to look for other plugins. Try Automaion Lite for Jira. I guess it also can do the trick. There is a lite version which is free:
You will have to create a scheduled job and then provide JQL query for issues which you want to change. Then you choose the edit issue action and set the required by you field. That is all.
...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...
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