Custom table type field

I have a specific requirement that, We need to store and display the values in a tabular manner. 

requirement is Table should have 2 columns 1) Date and time 2) Description

1) Date and Time – Need to fill automatically to current time when ever there is an entry for description.

Kindly let me know if you have any solution for this kind of requirement.

 

I found table grid editor plugin, But that does not support date-time and auto set to current date-time.

2 answers

This widget could not be displayed.

there is already a plugin for doing this.

Consider if buying iDalko Table Grid is an option for your customers.

https://marketplace.atlassian.com/plugins/com.idalko.jira.plugins.igrid

edit: excuse me, just noticed that you already checked it.

This widget could not be displayed.

you will propably need following components:

  1. a custom field that is able to take tabular data. There are plenty of ways to do this. One possible solution would be to store the tabular data as string in a serialized map. 
    You could extend AbstractSingleFieldType<String> or StringCFType.
    You would need to implement converters which should serialize/desirialize the values from string to map representation and vice-versa.

    Examples

     

    public static byte[] serialize(final Object object) throws IOException {
    
            final ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
    
            final ObjectOutputStream oOut = new ObjectOutputStream(byteOut);
    
            oOut.writeObject(object);
    
            return DatatypeConverter.printBase64Binary(byteOut.toByteArray());
    
        }





  2. IssueListener which is listening on ISSUE_UPDATED event. Whenever somebody updates description on some issue, that listener would go ahead and set the values for your custom field.
    check: https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+Event+Listeners+with+the+atlassian-event+Library

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

578 views 25 15
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