Can we hide system field like comment , attachments on workflow transition using Groovy, Behaviour etc ?

is it possible to hide system fields like comment , attachment etc on workflow transition using behaviuors or any other scripts ?

Thanks in advance,

Sumit

2 answers

1 accepted

I have used behaviour plugin to hide comment field during workflow transition and it works as expected.

Hi Sumit, how have you done that? I mean is there a need to write a script for it or there are some config options that I'm not seeing? Need to hide a comment field on just one particular transition screen. Thanks a lot.

yes this can be easily achieved using behavior plugin on workflow transition. You can also try to use properties in workflow to disable the comment on specific transition but i like behaviour as a good option

Sumit, can you explain how exactly you do this using Behaviours? Do you need to use a custom script?

1. As for fields - you can just remove the field from the transition screen and user will not be able to use it during transition.

2. As for comment - you can add transition property that blocks permission to comment:

jira.permission.comment.user=denied

the same for attachment, but you can just don't add attachment field on transition screen. See details on https://confluence.atlassian.com/display/JIRA/Workflow+properties

it doesn't work on transition screen.

I tried adding the properties like jira.permission.comment.user=denied

Jira 6.1.7

Thanks

Still have a question about how to work with system attachment field using Behaviour Plugin ?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

503 views 1 18
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