通过组件前缀过滤JIRA导出CSV
我正在努力将JIRA导出CSV的数据馈送到较大的仪表板中。为了使这些数据有用,我需要能够将默认的“组件/s”标头重组为组件特定的标头。
例如,我有以下前缀组件“颜色-BLUE”,“颜色 - 红色”,“ Shape -Square”,“ Shape -Circle”。
JIRA在字母内将现有的“组件/S”列导出。因此,如果Ticket Sample3没有颜色组件,我可能会有以下CSV:
Ticket,Component/s,Component/s
Sample1,Color - Blue,Shape - Square
Sample2,Color - Red, Shape - Circle
Sample3,Shape - Square,
如您所见,通过第一个“组件/S”列过滤不仅包含颜色数据,还包括形状。同样,通过第二个“组件/s”列过滤会完全错过Sample3的形状数据。
我想做的是基于前缀转换此原始数据以创建具有这种格式的新表:
Ticket,Color,Shape
Sample1,Color - Blue,Shape - Square
Sample2,Color - Red, Shape - Circle
Sample3,,Shape - Square
有没有一种方法可以基于前缀字符串在Excel中创建新列?如果影响方法,我的实际数据设置最多包含10列的“组件/s”列。
谢谢!
I'm working on feeding data from a Jira export CSV into a larger dashboard. In order to make this data useful, I need to be able to reorganize the default "Component/s" headers into Component specific headers.
For example, I have the following prefixed components "Color - Blue", "Color - Red", "Shape - Square", "Shape - Circle".
Jira exports existing "Component/s" columns for a given ticket (row) alphabetically. As such, I might have the following CSV if ticket Sample3 didn't have a Color component:
Ticket,Component/s,Component/s
Sample1,Color - Blue,Shape - Square
Sample2,Color - Red, Shape - Circle
Sample3,Shape - Square,
As you can see, filtering by the first "Component/s" column wouldn't only include Color data, it also includes a Shape. Similarly, filtering by the second "Component/s" column would miss Sample3's Shape data altogether.
What I would like to do is transform this raw data based on prefix to create a new sheet with this format:
Ticket,Color,Shape
Sample1,Color - Blue,Shape - Square
Sample2,Color - Red, Shape - Circle
Sample3,,Shape - Square
Is there a way to create new columns in Excel based on a prefix string? If it affects the approach, my actual data set includes up to 10 columns of "Component/s" columns.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
continue
Use Power Query with script:
where you need to replace
C:\ ...your path... \jira output.csv
with your actual path and filename.For example, if given this as the CSV input:
it will create a table in Excel with this as the output: