Adding custom fields for subtasks?

I need to add a custom field to a subtask, and make that field being filled out mandatory for the subtask to be completed. Can someone please assist?

1 answer

1 accepted

Accepted Answer
2 votes

Is this field mandatory on create of your subtask or only on closing (resolving). If first:

  • First you need to make sure that you have own screens for issuetype Subtask in your Project.
  • Add a screen scheme for Subtask if not already there
  • Add you new field to the subtask screens
  • Make sure you have a own Field Configuration for issue type Subtask (if not make a copy of an existing in your project)
  • and finally set this field in your Subtask Field Configuration mandatory (required)

if second

  • Add this field to your subtask screens (if not already done)
  • create a screen containing this field and use this screen in the Close / Resolve transition.
  • Add a validator (Field required validator) that this field must not be empty)

The field needs to be completed before the issue can be closed (second option). Would you mind going into more detail regarding how I actually add the custom field to the subtask? That is what I'm having trouble doing, as I don't seem to be able to do it in the same way I can add the field to a parent task. Thank you. 

Create a screen containing this field Edit your workflow - > go to the Close transition -> edit that transition Add that screen to that transition Now add a validator to taht transition (Field required validator - use your field) Publish your workflow See https://confluence.atlassian.com/display/JIRA/Advanced+workflow+configuration#Advancedworkflowconfiguration-validators and https://confluence.atlassian.com/display/JIRA/Using+validators+with+custom+fields

Thank you so far. Sorry for all the questions, I'm usually pretty good at this. But I've been dropped in the middle of someone else's project and it's kind of a nightmare to sift through. If I am working with a workflow thats already been created, how can I swap out the screen in use for one of mine?

Well the question is what is on the current transition screen. You can add your field to that transition screen (and only add your validator) or replace the screen by editing the workflow-> editing the transition (and so on). But then you need to make sure the is no other validator which used a field of the old transition screen. So I would go with the first solution.

Ok So I am making some headway, but this solution isn't really in line with what I need. What I would like is for the subtasks themselves to hold the fields, not in the transition screen. 

Say I click a parent issue with two subtasks. In the parent issue the two subtasks are listed below. If I click the subtask it's loaded like a standard ticket, but I cannot for the life of me figure out how I can place fields on these subtask tickets. Does that make any sense?

In that case add the field to your subtask Screen (make sure you have different screens for parent and subtask

@Robert Anthony did you ever get anywhere with this? Having a rough time trying to do the same thing. Where Is My Field tells me the field should be there, but it isn't

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

416 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you