Page MenuHomePhorge

Herald actions: Allow setting subtype on Maniphest tasks
ClosedPublic

Authored by aklapper on Mar 22 2025, 10:16.
Tags
None
Referenced Files
F3553411: D25913.1744932252.diff
Wed, Apr 16, 23:24
F3550118: D25913.1744900218.diff
Wed, Apr 16, 14:30
F3541654: D25913.1744897106.diff
Wed, Apr 16, 13:38
F3535947: D25913.1744894491.diff
Wed, Apr 16, 12:54
F3535759: D25913.1744894364.diff
Wed, Apr 16, 12:52
F3535396: D25913.1744894147.diff
Wed, Apr 16, 12:49
F3534273: D25913.1744892847.diff
Wed, Apr 16, 12:27
F3509697: D25913.1744803521.diff
Tue, Apr 15, 11:38
Tokens
"Like" token, awarded by 20after4.

Details

Summary

https://secure.phabricator.com/T12314 introduced task subtypes. Allow Herald rules which change/set the subtype of a task.
Code originally written by @20after4 for Wikimedia.

Closes T16022

Test Plan
  1. Have the default subtype configuration with three types under http://phorge.localhost/config/edit/maniphest.subtypes/ defined in src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
  2. Go to http://phorge.localhost/herald/edit/?content_type=HeraldManiphestTaskAdapter&rule_type=global
  3. Under "Action", select the new "Change subtype to" option. Test the subtype search by clicking the magnifier icon, set up a Herald rule to test execution.
  4. Remove the config for http://phorge.localhost/config/edit/maniphest.subtypes/
  5. Repeat step 3, no explosions, default "Task" subtype still exists after removing the config.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable