Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Jira connection: sometimes, the Jira connection is lost, requiring a restart of the Client

Discussion in 'Unity Version Control' started by Wolfram, Mar 28, 2023.

  1. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    I successfully connected one of my repos/workspaces to Jira. In the mouse-over tooltip I see the ticket name, and can click the link to the ticket:

    Plastic_BranchMouseOverJira_redacted.png

    However, several times now this connection is simply lost. The branch explorer view reverts to a view as if the project was not connected (=the ticket link is missing, and the branch name does no longer show the ticket title as subtext, just the prefix_XYZ). I have to explicitly close and restart the client to re-activate the connection:

    Plastic_BranchMouseOverJira_unconnected.png

    So far I was unable to determine under which circumstances this happens, or whether it happens sporadically or constantly. It possibly happened after committing some changes, and/or switching branches.

    Additional info: we use Jira Cloud in a company-managed project (=a "next-gen" project). We have the custom field "Plastic SCM" created, but as it is a "next-gen" project, it is not used at all, and the auto-commenting in fact only succeeds if that Custom ID is empty in the Plastic configuration. However, as the Jira comment posted for every commit is quite "spammy"/verbose, and contains little useful info, it is possible the problem occurred after committing a change while the Custom ID field in the Plastic configuration contained a number (valid or not), which is currently our workaround to PREVENT Plastic from adding these Jira comments...

    -----

    Additional feature idea: make the amount of info posted as Jira comments configurable. Rarely, you'll want a 10-100 line detailed info with all headers - this can become quite messy for large feature branches - especially if you use the Jira comments to actually DISCUSS important things. Instead, it might suffice to JUST post the changeset ID plus the commit message, IDEALLY with an actual backlink into Plastic (which the Plastic client actually supports!):

    plastic://ssl://SERVER:8088/repos/REPONAME/changesets/1438/diff
     
  2. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    842
    Could you attach the Plastic client logs? My guess is there could be a temporary network issue connecting to the JIRA server but we should be able to see more information in the logs:

    C:\Users\xxx\AppData\Local\plastic4\logs

    Regards,
    Carlos.
     
  3. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    If it happens again, I can open a support ticket with more info.
    Currently we're not really using the Jira extension regularly.
     
  4. Wolfram

    Wolfram

    Joined:
    Feb 16, 2010
    Posts:
    253
    carlosalba1985 likes this.