Cannot get @inherit to work

smaction June 29, 2018

Here is my markup for the template that creates the subtask but none of the fields are inherited.

 

- MR / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit"
- KWG / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit"
- KWA / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit"
- Content / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit" watcher:"rachelj"
- Federline / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit"
- AWR / cfield:"account@inherit" cfield:"kt@inherit" cfield:"type@inherit"


Where did I go wrong?

1 answer

0 votes
Micha Kops
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2020

According to the addon's wiki, the syntax for inheriting custom-fields is:

- Summary / cfield:"NAME:@inherit"

So in your example, you should possibly write:

- MR / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit"
- KWG / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit"
- KWA / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit"
- Content / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit" watcher:"rachelj"
- Federline / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit"
- AWR / cfield:"account:@inherit" cfield:"kt:@inherit" cfield:"type:@inherit"

Also please watch out, that inheriting custom-fields is currently only implemented for the following custom-field types:

  • Checkboxes
  • Text Field (Single Line)
  • Date Picker
  • Number Field
  • Text Field (Multi Line)
  • URL Field
  • User Picker (single user)
  • Select List (multiple choices)
  • Date Time Picker

More information can be found here: https://bitbucket.org/hascode/jira-quick-subtasks/wiki/Home#markdown-header-custom-fields-inheriting

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events