iT邦幫忙

2023 iThome 鐵人賽

DAY 9
2
IT管理

每天利用 Jira 開單時,練習一個密技,應該不是薪水小偷吧!?系列 第 9

Day9-確診了也要寫文章!又是樸實無華的 Jira 開單日常-誰開單誰負責啦!

  • 分享至 

  • xImage
  •  

今天我遇到寫 iThome 鐵人寫文章最大危機,就是我確診兩條線了。
https://ithelp.ithome.com.tw/upload/images/20230924/20162673Izvp1Llb4Y.png

昨天公司舉行運動會,其實當時我就有點累,所以晚上的 After party 就忍痛(真的是忍痛啊,好想喝酒)取消,回到家後很早就睡了。睡到半夜被發燒叫醒,一驗快篩清楚的兩條線!!我就在半夜拖著病體一方面吃藥喝水,一方面取消白天行程,還做了上班日的任務變動安排。

話說,原本白天的行程是找機會練習比較難的 Automation 術式,但無奈 Covid 19 領域展開,我根本無力招架,整個白天大都在昏睡,清醒時只是為了吃飯、吃藥,終於睡到晚上八點多時,大腦還算是清楚,身體除了喉嚨痛外沒有其他的症狀,於是趕快跳下床打開 iThome 編輯器。
個人做事個人擔,小叮做事小叮噹,今天就來設定 Auto-assign to whoever created the issue,就是 誰開單但又沒有assign別人,就自己負責!


今日分享

  1. 自動化成果報告
  2. 啟用 Auto-assign to whoever created the issue

自動化成果報告

在分享今天的功課前,我在 Day4-你不是不好只是太用腦,快啟用 Jira Transitioned Automation assigned,啟用 When an issue is transitioned → then automatically assign 」的 transitioned Automation template ,已經奏效啦!!有圖有真相啦!

  1. 首先是先看到 II3D-12[TO DO] 時的內容,可以看到右上角的 [Assignee]Unassigned
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673Ruxw8aAAJi.png

  2. 來到 Scrum Board 上,我把 II3D-12 這張票從 [TO DO] 拉到 [In Progress]
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673wNKamllraP.png

  3. 點開 II3D-12 ,可以很清楚看到 右上角的 [Assignee] 已經變更為是 Gobby CHEN Yi-chun,就是本人我啦。
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673J2nwSqAavj.png

而且,同一個時間,email也收到通知信。
https://ithelp.ithome.com.tw/upload/images/20230924/20162673zt1Oh1plba.png

When an issue is transitioned → then automatically assign 」的 transitioned Automation template-->設定成功


Auto-assign to whoever created the issue

回到我們的「又是樸實無華的 Jira 開單日常」系列,今日連載第四期啦!
今日分享主題:當一個 issue 開出來後,有時我們會忘了設定 [Assignee],就開單出去了,這時我們的 Jira 小秘書就會默默幫你把 [Assignee] 自動設定為開單的人,這個就是 個人做事個人擔,小叮做事小叮噹 最好的安排吧!

Smart auto-assign

When an issue is created without an assignee, automatically assign it. Go one better and assign it based on skillset or in a balanced workload.

而這個自動化沒有在 template 上,因此,今天我們要來從 automation library 來練習設定喔。(手癢吧!)

  1. 找到 Automation Templates
  • 首先從專案 Board 點擊左邊功能區的 [Project setting]
  • 點擊左邊功能區的 [Automation]
  • 點擊中間上方的 [Rules] 、[Audit log] 、 [Templates] 的 [Templates]
  • 進到 Automation templates 選單後向下拉
  1. 拉到頁面最下方,找到 See more templates in our automation library ,並點擊進去。
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673W15zUhQB6I.png

  2. 來到了 Jira automation template library 的頁面,我們把頁面向下拉。https://ithelp.ithome.com.tw/upload/images/20230924/20162673keJ8PjGi95.png

  3. 找到 Popular categories 中的 Most popular automation 選單,點擊 [See template -> ]
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673U6sql2xjlJ.png

  4. 來到了 Most popular Jira automation templates頁面,我們把頁面向下拉,來找到今天的主題。
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673ya7X18LvuN.png

  5. 找到今天的主題並 [Go to rule] 。主題為 Smart auto-assign,When an issue is created without an assignee, automatically assign it. Go one better and assign it based on skillset or in a balanced workload.
    https://ithelp.ithome.com.tw/upload/images/20230924/201626736DrJKEftmL.png

  6. 看到設定的步驟及內容後(When,If,Then),記下來後切換頁面到原本的 Automation template
    https://ithelp.ithome.com.tw/upload/images/20230924/20162673epL6jdxkg4.png

https://ithelp.ithome.com.tw/upload/images/20230924/20162673L149Pc3hU4.png

https://ithelp.ithome.com.tw/upload/images/20230924/201626738AUFhxIfGQ.png

https://ithelp.ithome.com.tw/upload/images/20230924/20162673n9A0PrZuqx.png

  1. 回到 Automation template 頁面,點擊 [Create rule]
    https://ithelp.ithome.com.tw/upload/images/20230925/20162673eysO5jk0dK.png

  2. 進到 When:Create a trigger,Select an event or schedule.我們把頁面向下拉,來找到 Issue created
    https://ithelp.ithome.com.tw/upload/images/20230925/20162673ChQ6y5wvdM.png

10.完成 When:Issue created Rule is run when an issue is created 設定。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673sexyBSEYiI.png

11.設定 If
(1)點擊 [Add component] 後,該 Component 變成 New component Select a new condition or action

(2)我們選擇 If:ADd a condition 。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673KFYp8VN78p.png

(3)選擇左邊的 RecommendedIssue fields condition,這個選項也是自動化設定中很受歡迎的。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673qDdq1EvGSh.png

(4)點擊進入 Issue fields condition 後,

  • [Field] 選擇 Assignee
  • [Condition] 選擇 is empty
  • 按下**[Save]**
    https://ithelp.ithome.com.tw/upload/images/20230925/20162673uqVKVimgNY.png

12.設定 Than
(1)點擊 [Add component] 後,該 Component 變成 New component Select a new condition or action

(2)我們選擇 Than:Add an action 。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673LkemdnMrSE.png

(3)看到左邊的 Assign the issue to的選項,我們從下拉式選單中選出 [Specify user],並按下 [Save]
https://ithelp.ithome.com.tw/upload/images/20230925/20162673SW5rNveLqu.png

13.為此 Automation 取個名字
(1)我們在右邊的空格內填入 Auto-assign to whoever created the issue 的文字。
(2)填入的文字立即出現在左上方。
(3)按下 [Turn it on]
https://ithelp.ithome.com.tw/upload/images/20230925/20162673Boa9Ttk7Ev.png

14.回到 Rules list ,這個 Rule 已經設定完成。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673tlEp7Xq8wL.png

15.驗證 Automation
(1)Create issue:Summry 為 詢問同事 DevOps 設定細節。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673va57FSD402.png

(2)下拉此 ticket 到 [Assignee] ,可以看到目前仍是 Automatic,再按下
[Create]
https://ithelp.ithome.com.tw/upload/images/20230925/201626739fle5ZmePH.png

(3)開完票後回來看此票的 [Assignee],已經變更為 Gobby 了。
https://ithelp.ithome.com.tw/upload/images/20230925/20162673PncyrDntFa.png

Auto-assign to whoever created the issue-->設定成功


上一篇
Day8-又是樸實無華的 Jira 開單日常- 小心!更新到關鍵字就會被貼標籤
下一篇
Day10-又是樸實無華的 Jira 開單日常-Auto-create sub-tasks 省力不少啊!
系列文
每天利用 Jira 開單時,練習一個密技,應該不是薪水小偷吧!?30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 則留言

0
艾薇 Ivy
iT邦新手 4 級 ‧ 2023-09-25 00:37:01

確診還記得發文也太強!辛苦了,祝早日康復~

狗鼻 iT邦新手 5 級 ‧ 2023-09-25 00:38:33 檢舉

因為個人做事個人擔,今年一定要完成 30 天文章發文!!!我們一起加油~

我要留言

立即登入留言