TPS BA Unitوحدة تحليل الأعمال في TPS / Work Templatesقوالب العمل / User Story & Acceptance Criteria Documentوثيقة قصص المستخدم ومعايير القبول

User Story & Acceptance Criteria Documentوثيقة قصص المستخدم ومعايير القبول

Story cards with full Gherkin ACs, data specs and metadataبطاقات قصص بمعايير قبول Gherkin كاملة ومواصفات بيانات وبيانات وصفية
DOCX Requirements & Specificationالمتطلبات والمواصفات

Get the templateاحصل على القالب

TPS-BA-UserStory-Template.docx
Download DOCXتنزيل DOCX
Guidance text inside the file is marked in italic gray — delete it before issue. Placeholders appear in blue. نصوص الإرشاد داخل الملف بخط مائل رمادي — احذفها قبل الإصدار. وتظهر العناصر النائبة باللون الأزرق.
All templatesكل القوالب TPS BA Unitالصفحة الرئيسية

What this template isما هذا القالب

The unit's agile requirement format: each story as a card (As a / I want / So that) with estimation metadata, categorised Gherkin acceptance criteria (happy path, validation, authorisation, edge cases), field-level data specifications and UI elements — grouped by epic with a story inventory.صيغة المتطلب الرشيق في الوحدة: كل قصة كبطاقة (بصفتي / أريد / حتى) مع بيانات التقدير، ومعايير قبول Gherkin مصنّفة (المسار السعيد، التحقق، الصلاحيات، حالات الحافة)، ومواصفات بيانات على مستوى الحقل وعناصر واجهة — مجمّعة حسب الملحمة مع جرد للقصص.

When to use itمتى تستخدمه

Document structureهيكل الوثيقة

1
Epic Header & Story Inventoryترويسة الملحمة وجرد القصص
The epic goal and a one-line index of its stories with points and priority.هدف الملحمة وفهرس من سطر لقصصها بالنقاط والأولوية.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. Give the epic a goal statement and list its stories with ID, title, points and status.أعطِ الملحمة بيان هدف واسرد قصصها بالمعرف والعنوان والنقاط والحالة.
  2. Keep story IDs stable and traceable to FRs/UCs.أبقِ معرفات القصص ثابتة وقابلة للتتبع إلى المتطلبات وحالات الاستخدام.
  3. Show the inventory's running total so scope creep is visible.أظهر المجموع الجاري للمخزون ليكون تضخم النطاق مرئياً.
🚫 Don’tلا تفعل
  1. Don't let the epic become a folder of unrelated stories.لا تدع الملحمة تتحول مجلداً لقصص متفرقة.
  2. Don't track status in two places — the inventory or the board, pick one master.لا تتابع الحالة في مكانين — المخزون أو اللوحة، اختر مرجعاً واحداً.
  3. Don't hide dropped stories — mark them Dropped with a reason.لا تُخفِ القصص المستبعدة — علّمها مستبعدة مع السبب.
💡 Exampleمثال

"Epic E-03 'Receipt allocation' — goal: no receipt stays unallocated >1 business day. 7 stories, 34 points; ST-21 dropped (superseded by auto-match tuning)."«الملحمة E-03 «تخصيص المقبوضات» — الهدف: لا مقبوض يبقى دون تخصيص أكثر من يوم عمل. 7 قصص و34 نقطة؛ واستُبعدت ST-21 (أغنت عنها معايرة المطابقة الآلية).»

2
Story Cardبطاقة القصة
As a [role] I want [capability] so that [benefit] — plus ID, points, priority, dependencies.بصفتي [دور] أريد [قدرة] حتى [منفعة] — مع المعرّف والنقاط والأولوية والتبعيات.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. Write the card as: As a , I want , so that — and mean each part.اكتب البطاقة: بصفتي <دوراً> أريد <قدرة> لكي <قيمة> — واقصد كل جزء.
  2. Keep the story INVEST: independent, small enough for a sprint, testable.أبقِ القصة وفق INVEST: مستقلة وصغيرة تكفي سبرنتاً وقابلة للاختبار.
  3. Add context notes the developer needs (links to UC, rules, mock-ups).أضف ملاحظات السياق التي يحتاجها المطور (روابط الحالة والقواعد والنماذج).
🚫 Don’tلا تفعل
  1. Don't write technical tasks as stories ("create the API") — the user is absent.لا تكتب مهاماً تقنية قصصاً («إنشاء الواجهة البرمجية») — المستخدم غائب فيها.
  2. Don't fake the 'so that' — if no value fits, question the story.لا تصطنع «لكي» — إن لم تجد قيمة فشكك في القصة.
  3. Don't pack multiple roles into one card.لا تحشر عدة أدوار في بطاقة واحدة.
💡 Exampleمثال

"ST-17: As a reconciliation officer, I want candidate invoices ranked by likelihood, so that I clear the unmatched queue before 10:00."«ST-17: بصفتي موظف مطابقة أريد ترتيب الفواتير المرشحة حسب الأرجحية، لكي أُنهي طابور غير المطابق قبل العاشرة صباحاً.»

3
Linked FRs / UCsالمتطلبات وحالات الاستخدام المرتبطة
Traceability back to the parent requirement and flow.التتبع إلى المتطلب الأم والتدفق.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. Link every story to its FR(s) and UC so coverage is provable both ways.اربط كل قصة بمتطلباتها الوظيفية وحالتها ليُثبت الغطاء في الاتجاهين.
  2. Flag stories with no parent FR — they are new scope needing a CR.علّم القصص بلا متطلب أصل — فهي نطاق جديد يستلزم طلب تغيير.
  3. Keep the links in the RTM too, not only on the card.أبقِ الروابط في مصفوفة التتبع أيضاً لا على البطاقة فقط.
🚫 Don’tلا تفعل
  1. Don't link loosely to a whole document — link to numbered items.لا تربط ربطاً فضفاضاً بوثيقة كاملة — اربط ببنود مرقّمة.
  2. Don't let one story silently cover half an FR while the RTM shows it Covered.لا تدع قصة تغطي نصف متطلب بصمت بينما تُظهره المصفوفة مغطى.
  3. Don't delete links when stories split — re-map them.لا تحذف الروابط عند تقسيم القصص — أعد توزيعها.
💡 Exampleمثال

"ST-17 ↔ FR-012, FR-013 (UC-07). RTM shows FR-013 split across ST-17/ST-18 — both must close before FR-013 counts as delivered."«ST-17 ↔ FR-012 وFR-013 (الحالة UC-07). تُظهر المصفوفة FR-013 موزعاً على ST-17/ST-18 — ولا يُعد مُسلَّماً حتى تُغلق كلتاهما.»

4
Acceptance Criteria (Gherkin)معايير القبول (Gherkin)
Given–When–Then scenarios grouped: happy path, validation, authorisation, system behaviour, edge cases.سيناريوهات Given–When–Then مجمّعة: المسار السعيد، التحقق، الصلاحيات، سلوك النظام، حالات الحافة.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. Write Given/When/Then with concrete values, one behaviour per scenario.اكتب معطى/عندما/عندئذ بقيم ملموسة، وسلوكاً واحداً لكل سيناريو.
  2. Cover the unhappy paths: rejection, threshold breach, timeout.غطِّ المسارات غير السعيدة: الرفض وتجاوز الحد وانتهاء المهلة.
  3. Make criteria executable as-is by QA — no interpretation needed.اجعل المعايير قابلة للتنفيذ كما هي لدى الجودة — بلا حاجة لتأويل.
🚫 Don’tلا تفعل
  1. Don't write criteria as feature lists ("supports partial allocation").لا تكتب المعايير قوائم خصائص («يدعم التخصيص الجزئي»).
  2. Don't hide numbers behind adjectives ("large amount").لا تُخفِ الأرقام خلف صفات («مبلغ كبير»).
  3. Don't exceed ~6 scenarios per story — split the story instead.لا تتجاوز نحو ستة سيناريوهات للقصة — قسّم القصة بدلاً من ذلك.
💡 Exampleمثال

"Given an unmatched receipt of SAR 60,000, When the officer confirms allocation, Then the system requires supervisor approval and does not post before it."«معطى مقبوض غير مطابق بمبلغ 60,000 ريال، عندما يؤكد الموظف التخصيص، عندئذ يشترط النظام اعتماد المشرف ولا يُقيّد قبله.»

5
Data Specificationsمواصفات البيانات
Field table with type, validation rule and error message.جدول الحقول بالنوع وقاعدة التحقق ورسالة الخطأ.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. List only the fields this story adds or changes, with validation and defaults.اذكر فقط الحقول التي تضيفها القصة أو تغيّرها، مع التحقق والافتراضات.
  2. Note migration/backfill needs the story implies.دوّن احتياجات الترحيل أو التعبئة الرجعية التي تستلزمها القصة.
  3. Keep names aligned with the SRS data dictionary.أبقِ الأسماء متوافقة مع قاموس بيانات وثيقة SRS.
🚫 Don’tلا تفعل
  1. Don't respecify fields other stories own.لا تعد توصيف حقول تملكها قصص أخرى.
  2. Don't leave enums open-ended ("etc.").لا تترك قوائم القيم مفتوحة («إلخ»).
  3. Don't introduce a field without saying who maintains its values.لا تُدخل حقلاً دون بيان من يدير قيمه.
💡 Exampleمثال

"Adds match_confidence (0–100, computed, read-only) shown on the candidates panel; no backfill — computed on next ingestion run."«تضيف حقل درجة الثقة (0–100، محسوب، للقراءة) في لوحة المرشحات؛ لا تعبئة رجعية — يُحسب في تشغيلة الاستقبال التالية.»

6
UI Screen Elementsعناصر الشاشة
Controls, states and empty/error views the story touches.عناصر التحكم والحالات وشاشات الفراغ والخطأ التي تلمسها القصة.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. Reference the mock-up and list the elements with their states and permissions.أحِل إلى النموذج واسرد العناصر بحالاتها وصلاحياتها.
  2. Specify empty/error/loading behaviour for each new component.حدد سلوك الفراغ والخطأ والتحميل لكل مكوّن جديد.
  3. State AR/EN label pairs for new labels.اذكر أزواج التسميات عربي/إنجليزي للتسميات الجديدة.
🚫 Don’tلا تفعل
  1. Don't paste screenshots as the only spec — they age silently.لا تلصق لقطات شاشة توصيفاً وحيداً — فهي تشيخ بصمت.
  2. Don't leave button enable/disable logic to the developer's guess.لا تترك منطق تفعيل الأزرار وتعطيلها لتخمين المطور.
  3. Don't design new patterns when the design system has one.لا تبتكر أنماطاً جديدة والنظام التصميمي يملك نمطاً قائماً.
💡 Exampleمثال

"Candidates panel (WF-12): rows sortable by confidence; Confirm disabled until selected total equals receipt amount or a reason code is chosen; error banner on posting failure."«لوحة المرشحات (WF-12): صفوف قابلة للفرز بالثقة؛ وزر التأكيد معطل حتى يساوي مجموع المحدد مبلغ المقبوض أو يُختار رمز سبب؛ وشريط خطأ عند فشل القيد.»

7
NFRs & Open Issuesالمتطلبات غير الوظيفية والمسائل المفتوحة
Story-level performance/security notes and pending decisions.ملاحظات أداء وأمن على مستوى القصة وقرارات معلّقة.
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
✅ Doافعل
  1. State the story-level NFRs QA will assert (latency, volume, roles).اذكر المتطلبات غير الوظيفية على مستوى القصة التي ستتحقق منها الجودة (الكمون والحجم والأدوار).
  2. Keep an open-issues list with owner and date; groom it every refinement.احتفظ بقائمة نقاط مفتوحة بمالك وتاريخ؛ ونقّحها في كل جلسة صقل.
  3. Record decisions made in refinement so they don't re-open.سجّل قرارات جلسات الصقل كي لا يُعاد فتحها.
🚫 Don’tلا تفعل
  1. Don't accept a story into a sprint with a blocking open issue.لا تقبل قصة في سبرنت وفيها نقطة حاجبة مفتوحة.
  2. Don't duplicate epic-level NFRs on every card.لا تكرر غير الوظيفي على مستوى الملحمة في كل بطاقة.
  3. Don't let 'temporary' scope cuts vanish — log them as new stories.لا تدع اقتطاعات النطاق «المؤقتة» تختفي — سجّلها قصصاً جديدة.
💡 Exampleمثال

"NFR: ranking computed within 2s at 500 open invoices. OI-1 (closed in refinement 12 Jun): ties in confidence sort by value date — decided, oldest first."«غير وظيفي: يُحسب الترتيب خلال ثانيتين عند 500 فاتورة مفتوحة. النقطة OI-1 (أُغلقت في صقل 12 يونيو): تعادل الثقة يُفرز بتاريخ الاستحقاق — تقرر: الأقدم أولاً.»

Practitioner tipsنصائح الممارسين