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.
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)
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.
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)
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.
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.
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.
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)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...
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