youngmon/atlassian-qna huggingface dataset:
Deactivate users not logged in for the last year
Asked by Lucas Molenaar:

I like to run a query that deactivates users that have not logged in in any of the connected applications after n-months. Could someone assist with creating a query that does this (I am useless with SQL)?

I am currently using the following query to list all the users and show the last logged in date:
> SELECT cwd_user.user_name, from_unixtime(cwd_user_attribute.attribute_value/1000) FROM cwd_user, cwd_user_attribute WHERE cwd_user_attribute.user_id = [cwd_user.id](http://cwd_user.id) AND cwd_user_attribute.attribute_name = 'lastAuthenticated'

Retrieved from here: <https://confluence.atlassian.com/display/CROWDKB/List+the+Last+Login+Date+for+all+Users+in+Crowd>


Answers:
author: Lucas Molenaar
body: Using the SQL queries below you can search for inactive users based on last login date (first query) and set them as inactive (2nd query)

**Locate inactive users based on EPOCH value (** so first find out the EPOCH value of a specific date and append three zeros as the DB stores the values as ms**)**

select \* from cwd_user where active = 'T' and id in (select user_id from cwd_user_attribute where cwd_user_attribute.attribute_name = 'lastAuthenticated' AND cwd_user_attribute.attribute_value \< 1420066800000);

**Deactivate these users:**

update cwd_user set active = 'F' where active = 'T' and id in (select user_id from cwd_user_attribute where cwd_user_attribute.attribute_name = 'lastAuthenticated' AND cwd_user_attribute.attribute_value \< 1420066800000);

**Notes:**

* EPOCH calculator: [link](http://www.esqsoft.com/javascript_examples/date-to-epoch.htm) (do not forget to append three zeros)

comments: author: Dhirendra_singh
body: Hi Lucas Molenaar,

Do last script help to fee up the license ?

It is disabling user and user unable to login after running / updating script but license is same for me.

Please see the below script an help if i need to update query to free up the license?

update cwd_user set active = 'F' where active = 'T' and id in (select user_id from cwd_user_attribute where cwd_user_attribute.attribute_name = 'lastAuthenticated' AND cwd_user_attribute.attribute_value \< 1420066800000) AND user_name in ('rthirutn','arokiadk','p-agillan','sboppa2b');

Regards,

Dhirendra


Tags: crowd-administration
Crowd + Spring Security Application SSO gives 404
Asked by Elias:

Hi,

We are trying to integrate our application (spring security 3.5) with Crowd (2.8) \& add the SSO feature. The integration of our application with crowd worked well so we are able to authenticate with no issues. However, when we add the Crowd SSO configuration steps to our spring security xml, we get 404 errors while submitting the login form. We followed the steps given in the crowd-sso guide. Are there any known issues or does any had similar issues and fixes?

Thanks!


Answers:
author: Elias
body: We figured this out by ourselves. It looks like there is a name space change on **/j_securiy_check from /j_spring_security_check. That solved the issue.**
How do I migrate crowd from the internal HSQL database to SQL Server
Asked by Ross Gardner:

I found this article but it involves a re installation and seems to detail moving between servers.

Is it not possible to keep my installation but simply migrate from the internal database to SQL Server? Others seem to be suggesting that a re-installation in place overwrites some key files.

<https://confluence.atlassian.com/display/CROWD/Migrate+to+Another+Database>


Answers:
author: rrudnicki
body: Hi Ross,

Since you need to change the database, you need to do a fresh install from Crowd since you will need to import the xml backup during the installation process.

I strongly recommend you to try it in a staging environment first and always have a backup before perform it in production.

Regards,

Renato Rudnicki


Tags: crowd-administration
Crowd: an opinion
Asked by Consu:

Hello all, I wanted to ask you for an opinion.

I would like to be able to do a lot of "operations" with our Confluence user list, like moving batch of people in and out groups, duplicate groups and maybe even get some statistic on segments of users.  

Our confluence users are 30% from a LDAP directory and 70% from internal directory.   

I am wondering if Crowd could be a good solution for my needs or not, given that we don't use JIRA nor any other Atlassian tool but Confluence.

Could you share an opinion with me? Many thanks already :smile:


Answers:
author: Timothy
body: I am sure Crowd does not have any statistics to provide you and it does not duplicate groups for you too. So, that might not be the right solution for you.

You can still manage users, groups and memberships in Confluence whether the user is an internal directory user or a Crowd user.

comments: author: Consu
body: Thanks Timothy :) Managing groups in Confluence is very very limited too, unless there are plugin I don't know about...


author: Timothy
body: What are you looking for exactly?


author: Consu
body: Hello Tim, I am looking mostly for something that would easily let me move batches of users into groups.I have some 900 users. Say I want to search for users with certain characteristics, for instance not belonging to a specific group and assign all the results to a new group. As now (as far as I know) I could do it manually one by one: no quite feasible in reality.About stats, it would be good to know something like: how many people are in a group, of this group how often the users login, how many users I have that logged only once...


Tags: crowd-administration

group

ldap
Problems creating new issue types
Asked by Dan Berkh:

Hello, I have problems creating the issue types on my project. I have the role of administrator of the project and organization, but when I access to the "Project settings" and go to the "Issue types" i can see the existing types of issues but I cant see the button of "add new issue type" in the right corner.

Is it possible that I have some privileges problems tha only allows me to view but not create new issue types?


Answers:
author: Dan Berkh
body: This issue solved itself or maybe it was a temporary bug. Somehow the missed options refreshed and appeared again. Thank you!


author: Samuel Gatica
body: Hi [@Dan Berkh](/t5/user/viewprofilepage/user-id/4383212)

Is this a Next-gen project? Or a Classic project?

Can you go to Settings \> Issues \> Issue Types?

Please ensure that you possess the Administer Jira project role within the Global Permissions.

<https://support.atlassian.com/jira-cloud-administration/docs/manage-global-permissions/>

Best regards,

Sam


author: Joseph Chung Yin
body: [@Dan Berkh](/t5/user/viewprofilepage/user-id/4383212) -

Can you confirm if you are the assigned with the Jira Administrators/Site Administrators rights?

Please see if you can click on the Clog Wheel symbol (upper right of the window) "Settings" \>\> Issues \>\> Issue Types?

For company managed project type projects, it is my understanding that only Jira Admins can add new issue type and change the project issue type configuration scheme.

For team managed project type projects, one will just need to be the project admins to add new issue types for the project -

<https://support.atlassian.com/jira-software-cloud/docs/set-up-issue-types-in-team-managed-projects/>

Let us know of your findings, so we can further assist you.

Best, Joseph Chung Yin


Tags: cloud

jira-cloud-administration

jira-service-management

jira-service-management-cloud

not-applicable
Why can't I get into Asset
Asked by Raoul Kaiser:

Is Asset application only available to Premium users of Jira Service Management?


Answers:
author: Samuel Gatica
body: Hi [@Raoul Kaiser](/t5/user/viewprofilepage/user-id/518880)

Correct, Asset is only available in Jira Service Management Premium and Enterprise plans.

Ref: <https://www.atlassian.com/software/jira/service-management/product-guide/getting-started/asset-and-configuration-management#how-it-works>

Best regards

Sam


Tags: cloud

jira-service-management

jira-service-management-cloud
How can I get automation to update a custom field in my ticket?
Asked by trthomas:

Using automation, I am trying to update a custom field (Departments) in my JSM ticket with the information in Assets (People object, Department attribute). My end goal is to have the department field in the ticket updated with the person's department.

I have the automation set to run when a ticket is created. It then adds information to the audit log to validate the person has a department listed in Assets. It then edits the issue to add the department to the Departments field. The audit shows that the automation rule is running successfully, but it never actually updates the field.

![automation.png](/t5/image/serverpage/image-id/339771iBE7BAD06EDE17153/image-size/large?v=v2&px=999 "automation.png")

![2024-08-02 13_43_02-Audit log - Automation - Service Desk - Jira and 11 more pages - Work - Microsof.png](/t5/image/serverpage/image-id/339772i78EECF2D6A681303/image-size/large?v=v2&px=999 "2024-08-02 13_43_02-Audit log - Automation - Service Desk - Jira and 11 more pages - Work - Microsof.png")

I used the information found in Use-Case 2 here

[How to copy values between Assets object field and multi-select custom field using Automation \| Jira \| Atlassian Documentation](https://confluence.atlassian.com/jirakb/copying-values-between-insight-field-and-multi-select-custom-field-using-automation-1141504943.html)

Any assistance you can provide to help get the Departments field updated with the Asset information would be greatly appreciated. Thank you.


Answers:
author: Adolfo Casari
body: [@trthomas](/t5/user/viewprofilepage/user-id/4487192)The example for that KB is kinda misleading, you shouldn't use issue.People.... but the name of the smart value that holds the object you want to put in Departmets (the one you used in your last log action). I assume Departmets is an Asset customfield configured properly.-


author: Nicolas Grossi
body: [@trthomas](/t5/user/viewprofilepage/user-id/4487192) You might take a look at this thread: <https://community.atlassian.com/t5/Jira-questions/How-can-I-automate-the-updating-of-a-value-in-a-custom-field/qaq-p/1864085>


Tags: cloud

jira-service-management

jira-service-management-cloud
Como visualizar en el panel el cumplimiento de SLA
Asked by Grettel Perez:

Hola, necesito ayuda para crear una metrica que me permita visualizar si cumplo o no con el SLA de resoluci?n y primera respuesta


Answers:
author: Adolfo Casari
body: [@Grettel Perez](/t5/user/viewprofilepage/user-id/5555336)El reporte se llama "SLA cumplidos e Incumplidos", dentro de la secci?n customs del menu Reportes del proyecto.

Alli se agregan las series para tiempo de resolucion y tiempo primera respuesta:

![imagen.png](https://community.atlassian.com/t5/image/serverpage/image-id/339820i6C1D49E4FAA0D35D/image-size/large?v=v2&px=999 "imagen.png")


author: Samuel Gatica
body: Hola [@Grettel Perez](/t5/user/viewprofilepage/user-id/5555336)

Este documento puede ayudarte

<https://support.atlassian.com/jira-service-management-cloud/docs/create-service-level-agreements-slas/>

Saludos

Sam

comments: author: Grettel Perez
body: Hola [@Samuel Gatica](/t5/user/viewprofilepage/user-id/753028) gracias por el link, pero no veo ningun documento que hable sobre sla para el panel, sabes de algo ?


author: Samuel Gatica
body: Hola [@Grettel Perez](/t5/user/viewprofilepage/user-id/5555336)

Ac? hay un documento para paneles de forma nativa.

<https://support.atlassian.com/jira-service-management-cloud/docs/discover-new-trends-with-service-project-reports/>

Y ac? otra opci?n usando apps del marketplace.

<https://appfire.com/resources/blog/how-to-track-slas-on-jira-dashboards>

<https://community.atlassian.com/t5/App-Central/How-to-visualize-and-track-SLAs-in-Jira-dashboards-like-a-pro/ba-p/2542177>

Saludos  
Sam


author: Grettel Perez
body: Gracias lo voy a revisar y te comento


Tags: cloud

jira-service-management

jira-service-management-cloud
Multiple help centers
Asked by Ben Larson:

Hi,

Is there somewhere to get a demo of this feature if I am not able to join the early access program due to membership level?


Answers:
author: Christopher Yen
body: I can provide some screenshots from my sandbox if that helps. Essentially your portal selection page (Help center) you can generate new ones that feature different projects which and each help center will have a different URL. So you could split help center to just IT projects, one center to HR, Finance, etc. let me know if there are different aspects you'd like to see and I'll see if I can record or screenshot it

![2024-08-02 12_50_03-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/339795i4BE941DCAFE5AB77/image-size/large?v=v2&px=999 "2024-08-02 12_50_03-Window.png")![2024-08-02 12_49_36-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/339794iA0E8A8C0FD3094AE/image-size/large?v=v2&px=999 "2024-08-02 12_49_36-Window.png")![2024-08-02 12_49_15-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/339793i95197D252424312B/image-size/large?v=v2&px=999 "2024-08-02 12_49_15-Window.png")

comments: author: Ben Larson
body: Are you able to have different configuration settings per site? For example if you wanted one site to be customer facing and one to be internal you would likely want different configurations settings. Is that possible?


author: Christopher Yen
body: To my knowledge there are no additional configurations available with added help centers. You can have a different look and feel, and also have different portals display in each help center and that seems to be the extent of the new feature.  

Unless your projects are split between internal and customer facing then you could create that differentiation but if they're in the same project once you click into the portal it's the same portal groups and request types. I'm looking for a similar feature as well to house my Change Request form and keep it separate from the rest of the IT requests/incidents


Tags: cloud

jira-service-management

jira-service-management-cloud
Customer Notifications Question
Asked by Tim Bonney:

How do you control whether the "View Issue" links within all customer notifications redirects the recipients to the internal portal view for the respective project/client, via <https://xyzcompany.atlassian.net/servicedesk/customer/portals>, or the customer's service desk view in Refined, via <https://servicedesk.xyzcompany.com/>?

Is it possible to evaluate whether the recipient is a member of a certain project role and send a different version of the customer notification emails(s), one pointing to customer facing service desk page(s) and the other to the internal portal page(s), based on that evaluation?

Thank you.


Answers:
author: Nadhila Savira
body: Hi Tim,

The URL is a variable of which value is not editable within the context of notifications.

If the user only has Customer access, then they will be sent Customer Notifications and given the portal link. The Customer Notifications template can be modified, although the link itself is not.

If the user has more access, and they have been configured to receive notifications through your Notification schemes, then they will receive internal notifications, of which template is currently not editable.

Please see the following page for the complete information: [What notifications do my customers and team receive?](https://support.atlassian.com/jira-service-management-cloud/docs/what-notifications-do-my-customers-and-service-desk-team-receive/)

comments: author: Tim Bonney
body: Thank you for this information Nadhila!


Tags: cloud

jira-service-management

jira-service-management-cloud

refined
Tareas que no computan en SLA
Asked by Jordi Fern?ndez:

?Hola!

He configurado tres SLA en mi proyecto, pero el de "Tiempo hasta primera respuesta" est? generando errores. Hay algunas tareas que, por mucho que respondas con un comentario a cliente, el SLA no computa bien las horas. ?Est? mal configurado el SLA o es un error de Jira?

Estas son las condiciones de mi SLA:

1. Iniciar el recuento de tiempo cuando...
   * Incidencia creada
2. Pausar el recuento de tiempo durante...   
   * Estado: EN ARCHIVO
3. Finalizar el recuento de tiempo cuando...
   * Comentario: Para los clientes
   * Estado introducido: Descartado
   * Estado introducido: Finalizado

Por favor, necesito ayuda para que deje de desconfigurarme los datos. ?Much?simas gracias de antemano!

---------------

Hello! I've set up three SLAs on my project, but the "Time to First Response" SLA is failing. There are some tasks that, no matter how much you respond with a customer comment, the SLA does not compute the hours well. Is the SLA misconfigured or is it a Jira error?

Here are the conditions of my SLA:

* Start the time count when... Incident created
* Pause the time count for... Status: ON FILE
* End the time count when... Comment: For customers; Entered Status: Discarded; Status entered: Completed

Please, I need help to stop misconfiguring my data. Thank you very much in advance!


Answers:
author: Adolfo Casari
body: [@Jordi Fern?ndez](/t5/user/viewprofilepage/user-id/5559325)

Parece que esta es la explicacion:

<https://confluence.atlassian.com/jirakb/time-to-first-response-sla-not-stopping-when-an-agent-adds-a-comment-to-the-ticket-1189504088.html>

comments: author: Jordi Fern?ndez
body: ?Much?simas gracias, Adolfo!

Efectivamente, he quitado a los agentes de jira de las organizaciones, y tambi?n he aplicado un filtro en los dashboards de SLA para que no contabilice aquellos casos en los que, por mucho que comentes, no se cumple el Tiempo Primera Respuesta, es decir, las incidencias en las que hay un agente como informador.


Tags: cloud

jira-service-management

jira-service-management-cloud

sla

time-to-sla
How to Integrate On-Premise AD with Jira Asset Management in order to imports assets
Asked by PK:

Hello Community!

Could you please help me out for my query,

We have to configure On-premise AD with Jira Asset management in order to import assets.

could you suggest any documentation and Appropriate steps.

Thanks in advance!


Answers:
author: Lisa Forstberg
body: Hi [@PK](/t5/user/viewprofilepage/user-id/5559298) ,

Welcome to the community!

In Jira cloud premium you can import assets from an external sources in these different ways:

![Screenshot 2024-08-02 at 14.20.33.png](https://community.atlassian.com/t5/image/serverpage/image-id/339682i0B8C19F28CB4FA22/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 14.20.33.png")

Create a Asset schema, then choose schema configuration \> Import to get to the options. Read more about this in the [documentation](https://support.atlassian.com/jira-service-management-cloud/docs/what-are-imports/).

If you want an integration that continuously sync data you need to look to the marketplace for apps, for example [the Azure AD/ Entra ID app from Pio](https://marketplace.atlassian.com/apps/1230198/azure-ad-microsoft-entra-id-importer-for-jsm-assets?hosting=cloud&tab=overview) could help?

all the best

/Lisa

comments: author: PK
body: Thanks for the reply [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516)

Actually our requirement is we wanted to configure **on-premise AD with on-premises Jira Environment(Jira asset managemnt)** , for that we needed an steps and documentation, we couldn't find as such, we gone though this [Document](https://confluence.atlassian.com/assetapps/setting-up-assets-aws-integration-1168848111.html) as well, didn't helped.

Please help, what are the exact attributes/details we needed from **on-premise AD** to configure with on-premises Jira Environment.

Thanks


author: Lisa Forstberg
body: Hi [@PK](/t5/user/viewprofilepage/user-id/5559298) ,

Ok, the questions were tagged as a cloud question.

Here is the documentation for imports on On prem Jira (Data center): <https://confluence.atlassian.com/servicemanagementserver/importing-your-data-1044784459.html>

See specifically the integration apps that are available: <https://confluence.atlassian.com/servicemanagementserver/importing-with-integrations-1044784461.html>

best regards

Lisa


author: PK
body: Thanks [@Lisa Forstberg](/t5/user/viewprofilepage/user-id/5101516) , we will try to configure


Tags: cloud

jira-service-management

jira-service-management-cloud
why JSM customer doesnt received JSM portal email invitation?
Asked by joana.e.villaluna:

why JSM customer doesnt received JSM portal email invitation?


Answers:
author: John Funk
body: Hi Joana - Welcome to the Atlassian Community!

You need to submit a support ticket to Atlassian to see if the email address is on their suppression list.

<https://support.atlassian.com/contact/#/>


author: Lashly
body: You should check the spam as well, it might be there


author: RG
body: [@joana.e.villaluna](/t5/user/viewprofilepage/user-id/5142576) Check customer portal notifications settings:

1. Go to**Project settings \> Customer Notifications**
2. Then under the **Notification** section, find the **Customer invited** rule and click **edit.**
3. This will take you to the customization page for this new rule where you can edit the subject and the message.
4. If you'd like this email to send automatically, be sure the **enable** checkbox is selected. If you'd like to stop sending customers this invitation email, simply un-check the **enable**checkbox.
5. When you're finished editing, click **Save.**


author: Mark Anderson
body: - Did they check spam folder?

- They might need to whitelist jira?

[IP addresses and domains for Atlassian cloud products \| Atlassian Support](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/)


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-software
Can automated mails be sent to copied mail ids while creating incident
Asked by Shabista S Ansari:

Hi Team,

Scenario : **When issue is created using Email channel**

Can automated mails be sent to copied mail ids while creating incident, when those incidents are created by support team using mailbox.

Details :

After mailbox configuration is done in JSM

Email channel is added/Default email account is added

When support team creates incident by writing a mail to that particular email id (in To)

So whichever mail ids are there in CC, Can we write an automation so as to allow notifications to be sent to mail ids in CC?


Answers:
author: Bhanu
body: All users in CC'd are added as Participants to the ticket and every participant will receive notifications about the issue.

You will need to have the following enabled:

* Have the global feature enabled to create an account for new customers in the email
* At project level, Customer Sharing option should be set to search for other customers within project or organizations.
* Check Customer Notifications and make sure that there is a notification rule to send Notifications to customers.


Tags: cloud

jira-service-management

jira-service-management-cloud
Building a workflow on Jira service desk
Asked by Julia Haberman:

Hi,

Can you please point me in the direction of a training video covering the process of building a workflow for Jira service desk?

Thanks,

Julia


Answers:
author: Bibek Behera
body: [@Julia Haberman](/t5/user/viewprofilepage/user-id/5559014) , Welcome to the community.

To get started [Building a workflow on Jira service desk](https://community.atlassian.com/t5/Jira-Service-Management/Building-a-workflow-on-Jira-service-desk/qaq-p/2773672?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_question&utm_content=topic).

I would suggest starting with a simplified workflow, before adding approval, post function, and all those advanced features.

<https://support.atlassian.com/jira-software-cloud/docs/use-the-simplified-workflow/>

-Bibek


Tags: cloud

jira-service-management

jira-service-management-cloud

workflow