iT邦幫忙

2023 iThome 鐵人賽

DAY 8
1
IT管理

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

Day8-又是樸實無華的 Jira 開單日常- 小心!更新到關鍵字就會被貼標籤

  • 分享至 

  • xImage
  •  

到了第八天了,「又是樸實無華的 Jira 開單日常」系列,今日連載第三期,希望大家看完⋯⋯不要覺得我太廢,什麼都要自動化,我說那個腦呢?
https://ithelp.ithome.com.tw/upload/images/20230923/20162673M17aFug2u4.png

今天是補班日,公司今天竟然還舉辦了運動會(比較像是趣味競賽),除了一整天的極限運動外,晚上還有續攤喝酒,所以~~我還是要發文。


今日分享

  1. 自動化成果報告
  2. Keywords
  3. 啟用 When an issue is updated → search for keywords inside issue and automatically assign a label

自動化成果報告

在分享今天的功課前,我在 Day7-又是樸實無華的 Jira 開單日常- 任務到期前1天自動寄催債信,啟用 When a task is near due → send email reminder ,已經奏效啦!!有圖有真相啦!只是原定的到期日 3 天前的值,我改成 1 天,但 email 內容沒有改到。(發文後再修改)
https://ithelp.ithome.com.tw/upload/images/20230923/20162673y9xiYQa0dX.png


Keywords:label

在 Jira 中,Label,標籤,是可以添加到問題上的標籤或關鍵詞,進行分類、識別或標記,用以表示它們具有某些特徵。
https://ithelp.ithome.com.tw/upload/images/20230923/20162673hazGFISFqQ.png


啟用 When an issue is updated → search for keywords inside issue and automatically assign a label

今日分享主題:當一個 issue 開出來後,在 Sprint 期間,如果有進度就會 update 內容,只要有特定的文字被 update(本次我們設定 iThome ironman ),而我們的 Jira 小秘書就會默默幫你貼標籤 [iThome-Ironman]

因此,今天我們要來練習設定喔。

  1. 找到 Automation Templates
  • 首先從專案 Board 點擊左邊功能區的 [Project setting]
  • 點擊左邊功能區的 [Automation]
  • 點擊中間上方的 [Rules] 、[Audit log] 、 [Templates] 的 [Templates]
  • 進到 Automation templates 選單後向下拉
  1. 找到 When an issue is updated → search for keywords inside issue and automatically assign a label ,並點擊進去。https://ithelp.ithome.com.tw/upload/images/20230923/20162673Q4XfVmSfM2.png

  2. Rules details 已經自動的填完 [Name][Description]

[Name]:When an issue is updated → search for keywords inside issue and automatically assign a label**

[Description] :Make issue categorisation easier. This rule will automatically label issues with a certain label if a keyword is detected within it.
https://ithelp.ithome.com.tw/upload/images/20230923/20162673uy8rbwK2to.png

  1. 詳看 [When] 的設定
    [Issue updated]

Rule is run when an issue is updated. This trigger needs no configuration.
https://ithelp.ithome.com.tw/upload/images/20230923/201626738axgmXe3IS.png

  1. 詳看 [If] 的設定
    (1)
    If:Issue matches JQL
    test~"My search keywords"

(2)
JQL

text~"My search keywords"
https://ithelp.ithome.com.tw/upload/images/20230923/2016267305sVM73O6G.png

在此次練習中,我將 My search keywords 改成 iThome ironman
https://ithelp.ithome.com.tw/upload/images/20230923/20162673Lu16EbLCUQ.png
等開啟 Automation 後再來看 [Audit log]

  1. 詳看 [Than] 的設定
    (1)
    Than:Edit issue fields
    Labels

(2)
[Edit issue] 設定中,原始設定的 Labels 是 [my-labels]
https://ithelp.ithome.com.tw/upload/images/20230923/20162673wTyTd4Nhib.png

  1. 手動修改數值
    (1)
    此次 label 為了符合此專案特性,也有意再做一次實驗修改,因此,我把 [my-labels] 手動改成 「iThome-Ironman」,再按 [Save]。
    https://ithelp.ithome.com.tw/upload/images/20230923/20162673sxYHnnbR7C.png

(2)最後再按下右上角的 [Turn it on],恭喜完成 ✅ ,灑花~
https://ithelp.ithome.com.tw/upload/images/20230923/201626738jbhJ10p5A.png

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

  2. 我們也點擊看 [Audit log] 這次的設定,我把 [my-labels] 手動改成 「iThome-Ironman」 ,而這個調整被納入紀錄中。 https://ithelp.ithome.com.tw/upload/images/20230923/20162673532ARTIm5X.png

  3. 驗證 Automation
    (1)
    首先隨選一張 Ticket ,先檢查一下 [Description] 沒有 iThome Ironman 的文字,且 [Labels]只有呈現我之前設定的 [Automation][Tempplate]
    https://ithelp.ithome.com.tw/upload/images/20230923/20162673bnEi3rDP2D.png

(2)
手動將 iThome Ironman 文字寫入[Description],再按下[Save],大約幾秒鐘後,[Labels] 欄位自動出現 [iThome-Ironman] 的 Label。
https://ithelp.ithome.com.tw/upload/images/20230923/20162673LzOfiKbzXh.png

本次實驗大成功。


上一篇
Day7-又是樸實無華的 Jira 開單日常- 任務到期前1天自動寄催債信
下一篇
Day9-確診了也要寫文章!又是樸實無華的 Jira 開單日常-誰開單誰負責啦!
系列文
每天利用 Jira 開單時,練習一個密技,應該不是薪水小偷吧!?30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言