Hi,
When we change the component name in any project the respective component using issues need to updated right.
The component name has been updated in all issues but the last update time of the issues was not updating and in issue history also not showing about the change.
Could you please let me know how to update the 'Last Updated Time' of the issues while chaging the component name in the project.
Answers would be appriciated.
Regards,
Patina
It's because you have not changed the issue. The name of a component really is just a name. The issue is aware that it has "component X" in the field, but when you rename it, it's still "component X", just with a different display name.
So, >"respective component using issues need to updated right." has the answer "no", your assumption is incorrect, because the issues are not changed. when you look at one in the issue view, Jira is reading a component link, and displaying the current display name. Changing the display name has no effect on the issue.
Because of this, there is no way to get an update to apply unless you're willing to write code that could then update all the issues (which is ugly, logically incorrect because the issues have not changed, and potentially a lot of hard work if you've got components that are used a lot in a project)
Hi brough,
Thank you for your quick response, really appriciated.
As of your comment "the issues are not changed". this is correct.
But as of our requirement we need to update the issues "Last update date" field with the component changed date. Is it possible to update? If it is possible, could you please let me know the way to update the issues.
Thanks,
Patina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You've got four options:
Every time an admin changes a component name, get them to bulk-comment on every issue that has that component on it. This is a long way from ideal because it's possible to block comments, and your admins suddenly have a LOT of work to do.
Amend the core code in Jira, adding something that will search for and update every affected issue on a component update. This is also a long way from ideal because bodging the core of Jira is asking for long-term nightmares, and there's a potential load issue because you're suddenly updating potentially thousands of issues
Write something that plugs into Jira and can do the updates that the core hack would do. This is better than a core change obviously, but you've still got the load problem and you need to find a way to trigger it. I'd be tempted to do this as a quick update that an admin can run out-of-hours, but that does imply delays to updates
Question the requirement, because it really does sound wrong, and is making unneccessary work for you, as well as potentially making your data nonesense. Why does a change of component label update the dates on the issues? The component hasn't changed. If you are genuinely changing component and not just renaming it, why didn't the PM add a new component and then update the issues to that? (Which would work of course)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brough,
Thank you for you valueble response.
The requirement to update the last updated date is" we have some ELT jobs in our database. i t runs for every 5 days. the ELT job is running based on the updated date and updates the changed values to some of the tables." So if we able to update the date then ELT job can easily take the chaged values. If not we will get the data inconsistency.
is it possible to write custom event for component name change. Could you please let me know.
Thanks,
Patina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That sounds like a broken ELT to me, because the issues haven't changed. The ELT should be using a unique and immutable ID, not a component name. In fact, the correct approach here if you are using the names would be to take the "add new component, delete old one" route, otherwise you've got inconsistent data by definition. One system is recording a change of name, and the other a change of underlying artefact. That's incorrect. (as an aside, be careful with TLAs, as ELT means "English Language Teacher" to me, and I'm totally guessing what you mean by it)
Anyway, my previous answer with the four options already answers your question about "custom event for component change" - you need to bodge the core of Jira to do this, which although I've mentioned it, I would avoid like the plague because it's a nightmare to maintain on upgrade.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding your requirement, you can search for all issues containing the component and add a comment like "Component renamed from XX to YY" via mass editing. In this way all issues get a new update date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tietgens,
Thank you for your response.
If we use the mass editing then user need to do the same procedure for every time while he changed the component.
is any way ( script/plugin ) to update "last updated date" field while change the component name. Could you please let me know.
Thanking you,
patina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it's possible to update issues update dates via API but I don't know if there is a way to get "Component changed" like events. I would say this has to be done via a custom plugin if it's possible at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's why I leaned towards some form of option that lets an admin do the updates - there are no "component updated" events that could be easily caught, you'd need to hack something in to fire them, or add to the end of the rename process. (And you've got load issues, no matter how you do it)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.